modifs.mineures sans commentaires
This commit is contained in:
parent
dd9a8e8256
commit
48d2c4aabf
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
namespace nulib;
|
||||
|
||||
use Exception;
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Class UserException: une exception qui peut en plus contenir un message
|
||||
* utilisateur
|
||||
*/
|
||||
class UserException extends Exception {
|
||||
class UserException extends RuntimeException {
|
||||
/** @param Throwable|ExceptionShadow $e */
|
||||
static function get_user_message($e): ?string {
|
||||
if ($e instanceof self) return $e->getUserMessage();
|
||||
|
|
Loading…
Reference in New Issue