Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| UserAlreadyLoggedIn | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| getData | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace BO\Zmsbackend\Useraccount\Exception; |
| 4 | |
| 5 | /** |
| 6 | * example class to generate an exception |
| 7 | */ |
| 8 | class UserAlreadyLoggedIn extends \Exception |
| 9 | { |
| 10 | protected $code = 404; |
| 11 | |
| 12 | protected $message = 'useraccount was already loggedin and is replaced by new login'; |
| 13 | |
| 14 | /** |
| 15 | * Payload for exception templates (assigned by WorkstationLogin). |
| 16 | */ |
| 17 | public mixed $data = null; |
| 18 | |
| 19 | public function getData(): mixed |
| 20 | { |
| 21 | return $this->data; |
| 22 | } |
| 23 | } |