src/Traits/HandlesExceptions.php
public function exception(string $exception, $closure)
    {
        $this->exceptionHandler->register($exception, $this->getCallable($closure));
    }
public function exception(string $exception, $closure)
    {
        $this->exceptionHandler->register($exception, $this->getCallable($closure));
    }
public function exception ( string $ exception , $ closure ) { $ this -> exceptionHandler -> register ( $ exception , $ this -> getCallable ( $ closure ) ) ; }
Register a custom exception handler.

@param string $exception
@param callable $closure
Register a custom exception handler .