protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '')
    {
        $this->error = [
            'error' => $message,
            'detail' => $detail,
            'smtp_code' => $smtp_code,
            'smtp_code_ex' => $smtp_code_ex,
        ];
    }
protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '')
    {
        $this->error = [
            'error' => $message,
            'detail' => $detail,
            'smtp_code' => $smtp_code,
            'smtp_code_ex' => $smtp_code_ex,
        ];
    }
protected function setError ( $ message , $ detail = '' , $ smtp_code = '' , $ smtp_code_ex = '' ) { $ this -> error = [ 'error' => $ message , 'detail' => $ detail , 'smtp_code' => $ smtp_code , 'smtp_code_ex' => $ smtp_code_ex , ] ; }
Set error messages and codes.

@param string $message      The error message
@param string $detail       Further detail on the error
@param string $smtp_code    An associated SMTP error code
@param string $smtp_code_ex Extended SMTP code
Set error messages and codes .