4 * @see https://github.com/laminas/laminas-diactoros for the canonical source repository
5 * @copyright https://github.com/laminas/laminas-diactoros/blob/master/COPYRIGHT.md
6 * @license https://github.com/laminas/laminas-diactoros/blob/master/LICENSE.md New BSD License
9 declare(strict_types=1);
11 namespace Laminas\Diactoros\Exception;
13 use UnexpectedValueException;
15 class SerializationException extends UnexpectedValueException implements ExceptionInterface
17 public static function forInvalidRequestLine() : self
19 return new self('Invalid request line detected');
22 public static function forInvalidStatusLine() : self
24 return new self('No status line detected');