1 <?php
2 3 4
5 namespace Team3\PayU\Communication\HttpStatusParser;
6
7 use Exception;
8 use Team3\PayU\Communication\Process\RequestProcessException;
9
10 11 12 13 14 15
16 class HttpStatusParserException extends RequestProcessException
17 {
18 19 20
21 private $statusCode;
22
23 24 25 26 27
28 public function __construct(
29 $message = "",
30 $statusCode = 0,
31 Exception $previous = null
32 ) {
33 parent::__construct($message, 0, $previous);
34 $this->statusCode = $statusCode;
35 }
36
37 38 39
40 public function getStatusCode()
41 {
42 return $this->statusCode;
43 }
44 }
45