public function setError($message, $code = 200, $info = null, $isSecurity = false)
    {
        if ($isSecurity) {
            $e = new \Gems_Exception_Security($message, $code, null, $info);
        } else {
            $e = new \Gems_Exception($message, $code, null, $info);
        }
        $this->setException($e);
    }
public function setError($message, $code = 200, $info = null, $isSecurity = false)
    {
        if ($isSecurity) {
            $e = new \Gems_Exception_Security($message, $code, null, $info);
        } else {
            $e = new \Gems_Exception($message, $code, null, $info);
        }
        $this->setException($e);
    }
public function setError ( $ message , $ code = 200 , $ info = null , $ isSecurity = false ) { if ( $ isSecurity ) { $ e = new \ Gems_Exception_Security ( $ message , $ code , null , $ info ) ; } else { $ e = new \ Gems_Exception ( $ message , $ code , null , $ info ) ; } $ this -> setException ( $ e ) ; }
Create an exception for the error, depending on processing position we either
set the response exception or throw the exception if the response is

@param string $message
@param int $code
@param string $info
@param boolean $isSecurity
@throws exception
Create an exception for the error depending on processing position we either set the response exception or throw the exception if the response is