public function throwError($string, $code = 500, $e = null)
    {
        if (!$this->isFullException() || is_null($e)) {
            throw new \Exception($string, $code);
        } else {
            throw new \Exception($string . ": " . $e->getMessage(), $code);
        }
    }
public function throwError($string, $code = 500, $e = null)
    {
        if (!$this->isFullException() || is_null($e)) {
            throw new \Exception($string, $code);
        } else {
            throw new \Exception($string . ": " . $e->getMessage(), $code);
        }
    }
public function throwError ( $ string , $ code = 500 , $ e = null ) { if ( ! $ this -> isFullException ( ) || is_null ( $ e ) ) { throw new \ Exception ( $ string , $ code ) ; } else { throw new \ Exception ( $ string . ": " . $ e -> getMessage ( ) , $ code ) ; } }
Throw the error based on the full exception config

@param string          $string the displayed exception
@param int             $code the displayed code
@param null|\Exception $e the actual exception
@throws \Exception the exception that is given
Throw the error based on the full exception config