| 1 | <?php |
||
| 22 | class ServiceException extends Exception |
||
| 23 | { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * ServiceException constructor. |
||
| 27 | * |
||
| 28 | * @param string $message the string of the error message |
||
| 29 | * @param int $code The code of the error |
||
| 30 | * @param \Exception|null $previous the previous exception. |
||
| 31 | */ |
||
| 32 | 13 | public function __construct($message = null, $code = 500, $previous = null) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * File setter |
||
| 42 | * |
||
| 43 | * @param string $file set the file |
||
| 44 | * @return void |
||
| 45 | */ |
||
| 46 | public function setFile($file = '') |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Line setter |
||
| 53 | * |
||
| 54 | * @param int $line set the line |
||
| 55 | * @return void |
||
| 56 | */ |
||
| 57 | public function setLine($line = 0) |
||
| 61 | } |
||
| 62 |