Свойство | Type | Description | |
---|---|---|---|
$debug | boolean | Indicates if we are in debug mode. | |
$format | array | Generic response format. | |
$handlers | array | Array of exception handlers. | |
$parentHandler | Illuminate\Contracts\Debug\ExceptionHandler | The parent Illuminate exception handler instance. | |
$replacements | array | User defined replacements to merge with defaults. |
Méthode | Description | |
---|---|---|
__construct ( Illuminate\Contracts\Debug\ExceptionHandler $parentHandler, array $format, boolean $debug ) : void | Create a new exception handler instance. | |
getHandlers ( ) : array | Get the exception handlers. | |
handle ( Exception $exception ) : Illuminate\Http\Response | Handle an exception if it has an existing handler. | |
register ( callable $callback ) : void | Register a new exception handler. | |
render ( Dingo\Api\Http\Request $request, Exception $exception ) : mixed | Render an exception into an HTTP response. | |
renderForConsole ( Symfony\Component\Console\Output\OutputInterface $output, Exception $exception ) : mixed | Render an exception to the console. | |
report ( Exception $exception ) : void | Report or log an exception. | |
setDebug ( boolean $debug ) : void | Set the debug mode. | |
setErrorFormat ( array $format ) : void | Set the error format array. | |
setReplacements ( array $replacements ) : void | Set user defined replacements. |
Méthode | Description | |
---|---|---|
genericResponse ( Exception $exception ) : Illuminate\Http\Response | Handle a generic error response if there is no handler available. | |
getExceptionStatusCode ( Exception $exception, integer $defaultStatusCode = 500 ) : integer | Get the exception status code. | |
getHeaders ( Exception $exception ) : array | Get the headers from the exception. | |
getStatusCode ( Exception $exception ) : integer | Get the status code from the exception. | |
handlerHint ( callable $callback ) : string | Get the hint for an exception handler. | |
newResponseArray ( ) : array | Create a new response array with replacement values. | |
prepareReplacements ( Exception $exception ) : array | Prepare the replacements array by gathering the keys and values. | |
recursivelyRemoveEmptyReplacements ( array $input ) : array | Recursirvely remove any empty replacement values in the response array. | |
runningInDebugMode ( ) : boolean | Determines if we are running in debug mode. |
protected genericResponse ( Exception $exception ) : Illuminate\Http\Response | ||
$exception | Exception | |
Résultat | Illuminate\Http\Response |
protected getExceptionStatusCode ( Exception $exception, integer $defaultStatusCode = 500 ) : integer | ||
$exception | Exception | |
$defaultStatusCode | integer | |
Résultat | integer |
public getHandlers ( ) : array | ||
Résultat | array |
protected getHeaders ( Exception $exception ) : array | ||
$exception | Exception | |
Résultat | array |
protected getStatusCode ( Exception $exception ) : integer | ||
$exception | Exception | |
Résultat | integer |
public handle ( Exception $exception ) : Illuminate\Http\Response | ||
$exception | Exception | |
Résultat | Illuminate\Http\Response |
protected handlerHint ( callable $callback ) : string | ||
$callback | callable | |
Résultat | string |
protected newResponseArray ( ) : array | ||
Résultat | array |
protected prepareReplacements ( Exception $exception ) : array | ||
$exception | Exception | |
Résultat | array |
protected recursivelyRemoveEmptyReplacements ( array $input ) : array | ||
$input | array | |
Résultat | array |
public renderForConsole ( Symfony\Component\Console\Output\OutputInterface $output, Exception $exception ) : mixed | ||
$output | Symfony\Component\Console\Output\OutputInterface | |
$exception | Exception | |
Résultat | mixed |
protected runningInDebugMode ( ) : boolean | ||
Résultat | boolean |
public setErrorFormat ( array $format ) : void | ||
$format | array | |
Résultat | void |
public setReplacements ( array $replacements ) : void | ||
$replacements | array | |
Résultat | void |
protected bool $debug | ||
Résultat | boolean |
protected array $handlers | ||
Résultat | array |
protected ExceptionHandler,Illuminate\Contracts\Debug $parentHandler | ||
Résultat | Illuminate\Contracts\Debug\ExceptionHandler |
protected array $replacements | ||
Résultat | array |