Barryvdh\Debugbar\LaravelDebugbar::addThrowable PHP Method

addThrowable() public method

Adds an exception to be profiled in the debug bar
public addThrowable ( Exception $e )
$e Exception
    public function addThrowable($e)
    {
        if ($this->hasCollector('exceptions')) {
            /** @var \DebugBar\DataCollector\ExceptionsCollector $collector */
            $collector = $this->getCollector('exceptions');
            $collector->addThrowable($e);
        }
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Adds an exception to be profiled in the debug bar
  *
  * @param \Exception $e
  * @static 
  */
 public static function addThrowable($e)
 {
     return \Barryvdh\Debugbar\LaravelDebugbar::addThrowable($e);
 }