src/ErrorHandler.php
public function handle(Exception $e)
    {
        foreach ($this->handlers as $handler) {
            if ($handler->manages($e)) {
                return $handler->handle($e);
            }
        }

        throw new RuntimeException('Exception handler for '.get_class($e).' not found.');
    }
public function handle(Exception $e)
    {
        foreach ($this->handlers as $handler) {
            if ($handler->manages($e)) {
                return $handler->handle($e);
            }
        }

        throw new RuntimeException('Exception handler for '.get_class($e).' not found.');
    }
public function handle ( Exception $ e ) { foreach ( $ this -> handlers as $ handler ) { if ( $ handler -> manages ( $ e ) ) { return $ handler -> handle ( $ e ) ; } } throw new RuntimeException ( 'Exception handler for ' . get_class ( $ e ) . ' not found.' ) ; }
Handle the exception provided.

@param Exception $e

@throws RuntimeException

@return \Tobscure\JsonApi\Exception\Handler\ResponseBag
Handle the exception provided .