diff --git a/library/Icinga/Exception/IcingaException.php b/library/Icinga/Exception/IcingaException.php index 3519a9abdb..0069a3c73e 100644 --- a/library/Icinga/Exception/IcingaException.php +++ b/library/Icinga/Exception/IcingaException.php @@ -5,6 +5,7 @@ use Exception; use ReflectionClass; +use Throwable; class IcingaException extends Exception { @@ -51,11 +52,11 @@ public static function create(array $args) * * The format used is: %class% in %path%:%line% with message: %message% * - * @param Exception $exception + * @param Throwable $exception * * @return string */ - public static function describe(Exception $exception) + public static function describe(Throwable $exception) { return sprintf( '%s in %s:%d with message: %s', @@ -70,11 +71,11 @@ public static function describe(Exception $exception) * Return the same as {@link Exception::getTraceAsString()} for the given exception, * but show only the types of scalar arguments * - * @param Exception $exception + * @param Throwable $exception * * @return string */ - public static function getConfidentialTraceAsString(Exception $exception) + public static function getConfidentialTraceAsString(Throwable $exception) { $trace = array();