src/Client.php
public function setDefaultException(\Exception $defaultException = null)
    {
        if (!$defaultException instanceof Exception) {
            @trigger_error('Clients may only throw exceptions of type '.Exception::class.'. Setting an exception of class '.get_class($defaultException).' will not be possible anymore in the future', E_USER_DEPRECATED);
        }
        $this->defaultException = $defaultException;
    }
public function setDefaultException(\Exception $defaultException = null)
    {
        if (!$defaultException instanceof Exception) {
            @trigger_error('Clients may only throw exceptions of type '.Exception::class.'. Setting an exception of class '.get_class($defaultException).' will not be possible anymore in the future', E_USER_DEPRECATED);
        }
        $this->defaultException = $defaultException;
    }
public function setDefaultException ( \ Exception $ defaultException = null ) { if ( ! $ defaultException instanceof Exception ) { @ trigger_error ( 'Clients may only throw exceptions of type ' . Exception :: class . '. Setting an exception of class ' . get_class ( $ defaultException ) . ' will not be possible anymore in the future' , E_USER_DEPRECATED ) ; } $ this -> defaultException = $ defaultException ; }
Sets the default exception to throw when the list of added exceptions and responses is exhausted.

If both a default exception and a default response are set, the exception will be thrown.
Sets the default exception to throw when the list of added exceptions and responses is exhausted .