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