File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 2020class ResumeTokenException extends \Exception
2121{
2222 /**
23- * Thrown when a resume token is not found in a change document .
23+ * Thrown when a resume token has an invalid type .
2424 *
25+ * @param mixed $value Actual value (used to derive the type)
2526 * @return self
2627 */
27- public static function notFound ( )
28+ public static function invalidType ( $ value )
2829 {
29- return new static (' Resume token not found in change document ' );
30+ return new static (sprintf ( ' Expected resume token to have type "array or object" but found "%s" ' , gettype ( $ value )) );
3031 }
3132
3233 /**
33- * Thrown when a resume token has an invalid type .
34+ * Thrown when a resume token is not found in a change document .
3435 *
35- * @param mixed $value Actual value (used to derive the type)
3636 * @return self
3737 */
38- public static function invalidType ( $ value )
38+ public static function notFound ( )
3939 {
40- return new static (sprintf ( ' Expected resume token to have type "array or object" but found "%s" ' , gettype ( $ value )) );
40+ return new static (' Resume token not found in change document ' );
4141 }
4242}
You can’t perform that action at this time.
0 commit comments