class Illuminate / Foundation / Exceptions / ReportableHandler
You are viewing an older version of the documentation. For the latest, please visit master documentation.

ReportableHandler

Uses

Properties

protected

$callback callable

The underlying callback.

Default: null
protected

$shouldStop bool

Indicates if reporting should stop after invoking this handler.

Default: false

Methods

public

__construct ( callable $callback ) : void

Create a new reportable handler instance.

Parameters

  • $callback callable
public

__invoke ( Throwable $e ) : bool

Invoke the handler.

Parameters

public

handles ( Throwable $e ) : bool

Determine if the callback handles the given exception.

Parameters

public

stop ( ) : $this

Indicate that report handling should stop after invoking this callback.