Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| AssignedUserListNotEmpty | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace BO\Zmsbackend\Role\Exception; |
| 4 | |
| 5 | /** |
| 6 | * Thrown when attempting to delete a role that still has assigned users. |
| 7 | */ |
| 8 | class AssignedUserListNotEmpty extends \Exception |
| 9 | { |
| 10 | protected $code = 428; |
| 11 | |
| 12 | protected $message = 'There are still users assigned to this role. ' . |
| 13 | 'Please remove all user assignments before deleting the role.'; |
| 14 | } |