modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2023-12-31 19:34:12 +04:00
parent dd9a8e8256
commit 48d2c4aabf
1 changed files with 2 additions and 2 deletions

View File

@ -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();