18 lines
404 B
PHP
18 lines
404 B
PHP
<?php
|
|
|
|
namespace App\Exceptions;
|
|
|
|
use RuntimeException;
|
|
|
|
/**
|
|
* Sollevata quando si tenta di anonimizzare/eliminare l'utente di sistema,
|
|
* che deve restare sempre presente come destinatario dei contenuti riassegnati.
|
|
*/
|
|
class CannotDeleteSystemUserException extends RuntimeException
|
|
{
|
|
public static function make(): self
|
|
{
|
|
return new self('The system user cannot be deleted.');
|
|
}
|
|
}
|