Medical Appointments API

ExceptionUtil
in package

ExceptionUtil class provides utility methods for extracting error details from Throwable objects.

Tags
author

Luis Graciano contacto@luisgraciano.dev

Table of Contents

getErrorDetails()  : string
Get error details from a Throwable (exception or error) and its parent exceptions.

Methods

getErrorDetails()

Get error details from a Throwable (exception or error) and its parent exceptions.

public static getErrorDetails(Throwable $exception) : string
Parameters
$exception : Throwable

The Throwable object to get error details from.

Return values
string

The formatted error details including stack traces of the given Throwable and its parents.

Search results