'Unknown error.', self::ERROR_POST_NOT_FOUND=>'The specified post cannot be found.', self::ERROR_USER_NOT_FOUND=>'The specified user account cannot be found.', self::ERROR_PERMISSION_DENIED=>'Sorry, you do not have permission to perform this action.', ); public static function getMessage($errorCode) { return isset(self::$_errorMessages[$errorCode])?self::$_errorMessages[$errorCode]:self::$_errorMessages[0]; } } ?>