src/Exception/IOException.php
protected function getErrorMessage($nCode, $strMessage = null)
    {
        $strReturn = 'Failure: ';
        if (null !== $this->strResourcePath) {
            $strReturn = 'Path: "'.$this->strResourcePath.'" ';
        }
        $strReturn .= 'Name: "'.$this->strResourceName.'"';
        $strReturn .= ' Code: ';
        switch ($nCode) {
            case self::FAILURE_IO:
                $strReturn .= 'General IO Error';
                break;
            case self::FAILURE_NOT_WRITEABLE:
                $strReturn .= 'not writeable';
                break;
            case self::FAILURE_NOT_READABLE:
                $strReturn .= 'not readable';
                break;
            case self::FAILURE_NOT_FOUND:
                $strReturn .= 'not found';
                break;
            default:
                $strReturn .= (string) $nCode;
                break;
        }
        if (null !== $strMessage) {
            $strReturn .= ' with message: "'.$strMessage.'"';
        }

        return $strReturn;
    }
protected function getErrorMessage($nCode, $strMessage = null)
    {
        $strReturn = 'Failure: ';
        if (null !== $this->strResourcePath) {
            $strReturn = 'Path: "'.$this->strResourcePath.'" ';
        }
        $strReturn .= 'Name: "'.$this->strResourceName.'"';
        $strReturn .= ' Code: ';
        switch ($nCode) {
            case self::FAILURE_IO:
                $strReturn .= 'General IO Error';
                break;
            case self::FAILURE_NOT_WRITEABLE:
                $strReturn .= 'not writeable';
                break;
            case self::FAILURE_NOT_READABLE:
                $strReturn .= 'not readable';
                break;
            case self::FAILURE_NOT_FOUND:
                $strReturn .= 'not found';
                break;
            default:
                $strReturn .= (string) $nCode;
                break;
        }
        if (null !== $strMessage) {
            $strReturn .= ' with message: "'.$strMessage.'"';
        }

        return $strReturn;
    }
protected function getErrorMessage ( $ nCode , $ strMessage = null ) { $ strReturn = 'Failure: ' ; if ( null !== $ this -> strResourcePath ) { $ strReturn = 'Path: "' . $ this -> strResourcePath . '" ' ; } $ strReturn .= 'Name: "' . $ this -> strResourceName . '"' ; $ strReturn .= ' Code: ' ; switch ( $ nCode ) { case self :: FAILURE_IO : $ strReturn .= 'General IO Error' ; break ; case self :: FAILURE_NOT_WRITEABLE : $ strReturn .= 'not writeable' ; break ; case self :: FAILURE_NOT_READABLE : $ strReturn .= 'not readable' ; break ; case self :: FAILURE_NOT_FOUND : $ strReturn .= 'not found' ; break ; default : $ strReturn .= ( string ) $ nCode ; break ; } if ( null !== $ strMessage ) { $ strReturn .= ' with message: "' . $ strMessage . '"' ; } return $ strReturn ; }
Builds and returns an error message for this exception.

@param int    $nCode      Code of failure from this consts
@param string $strMessage Exception message

@return string A message for this error
Builds and returns an error message for this exception .