Error
class Error (View source)
Drupal error utility class.
Constants
| ERROR |
The error severity level. |
Properties
| static protected array | $blacklistFunctions | An array of blacklisted functions. |
Methods
static array
decodeException(Exception|Throwable $exception)
Decodes an exception and retrieves the correct caller.
static string
renderExceptionSafe(Exception|Throwable $exception)
Renders an exception error message without further exceptions.
static array
getLastCaller(array $backtrace)
Gets the last caller from a backtrace.
static string
formatBacktrace(array $backtrace)
Formats a backtrace into a plain-text string.
Details
static array
decodeException(Exception|Throwable $exception)
Decodes an exception and retrieves the correct caller.
static string
renderExceptionSafe(Exception|Throwable $exception)
Renders an exception error message without further exceptions.
static array
getLastCaller(array $backtrace)
Gets the last caller from a backtrace.
static string
formatBacktrace(array $backtrace)
Formats a backtrace into a plain-text string.
The calls show values for scalar arguments and type names for complex ones.