Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
error.php
1<?php
2
4
5class Error
6{
8 protected $code;
9
11 protected $message;
12
18 public function __construct($message, $code = 0)
19 {
20 $this->message = $message;
21 $this->code = $code;
22 }
23
28 public function getCode()
29 {
30 return $this->code;
31 }
32
37 public function getMessage()
38 {
39 return (string)$this->message;
40 }
41
42 public function __toString()
43 {
44 return $this->getMessage();
45 }
46}
__construct($message, $code=0)
Definition error.php:18