src/Client.php
public function addException(\Exception $exception)
    {
        if (!$exception instanceof Exception) {
            @trigger_error('Clients may only throw exceptions of type '.Exception::class.'. Setting an exception of class '.get_class($exception).' will not be possible anymore in the future', E_USER_DEPRECATED);
        }
        $this->exceptions[] = $exception;
    }
public function addException(\Exception $exception)
    {
        if (!$exception instanceof Exception) {
            @trigger_error('Clients may only throw exceptions of type '.Exception::class.'. Setting an exception of class '.get_class($exception).' will not be possible anymore in the future', E_USER_DEPRECATED);
        }
        $this->exceptions[] = $exception;
    }
public function addException ( \ Exception $ exception ) { if ( ! $ exception instanceof Exception ) { @ trigger_error ( 'Clients may only throw exceptions of type ' . Exception :: class . '. Setting an exception of class ' . get_class ( $ exception ) . ' will not be possible anymore in the future' , E_USER_DEPRECATED ) ; } $ this -> exceptions [ ] = $ exception ; }
Adds an exception that will be thrown.
Adds an exception that will be thrown .