for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Chubbyphp\Deserialization;
final class DeserializerRuntimeException extends \RuntimeException
{
/**
* @param string $contentType
*
* @return self
*/
public static function createNotParsable(string $contentType): self
return new self(sprintf('Data is not parsable with content-type: %s', $contentType));
}
* @param array $paths
public static function createNotAllowedAddtionalFields(array $paths): self
return new self(sprintf('There are additional field(s) at paths: %s', implode(', ', $paths)));