43f682d3622272f8dc167af9d98a88adbd9fb37d
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 /**
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
7 */
8
9 declare(strict_types=1);
10
11 namespace Laminas\Diactoros\Exception;
12
13 use UnexpectedValueException;
14
15 class SerializationException extends UnexpectedValueException implements ExceptionInterface
16 {
17 public static function forInvalidRequestLine() : self
18 {
19 return new self('Invalid request line detected');
20 }
21
22 public static function forInvalidStatusLine() : self
23 {
24 return new self('No status line detected');
25 }
26 }