| 1 | <?php |
||
| 7 | final class DeserializerRuntimeException extends \RuntimeException |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param string $path |
||
| 11 | * |
||
| 12 | * @return self |
||
| 13 | */ |
||
| 14 | 1 | public static function createInvalidType(string $path, string $type): self |
|
| 15 | { |
||
| 16 | 1 | return new self(sprintf('There is an invalid type "%s" at path: %s', $type, $path)); |
|
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $contentType |
||
| 21 | * |
||
| 22 | * @return self |
||
| 23 | */ |
||
| 24 | 1 | public static function createNotParsable(string $contentType): self |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $paths |
||
| 31 | * |
||
| 32 | * @return self |
||
| 33 | */ |
||
| 34 | 1 | public static function createNotAllowedAddtionalFields(array $paths): self |
|
| 38 | } |
||
| 39 |