newInstanceArgs($args); } /** * Return the given exception formatted as one-liner * * The format used is: %class% in %path%:%line% with message: %message% * * @param Exception $exception * * @return string */ public static function describe(Exception $exception) { return sprintf( '%s in %s:%d with message: %s', get_class($exception), $exception->getFile(), $exception->getLine(), $exception->getMessage() ); } }