class Evernote::EDAM::Error::EDAMSystemException

This exception is thrown by EDAM procedures when a call fails as a result of an a problem in the service that could not be changed through user action.

errorCode: The numeric code indicating the type of error that occurred.

must be one of the values of EDAMErrorCode.

message: This may contain additional information about the error

Constants

ERRORCODE
FIELDS
MESSAGE

Public Instance Methods

struct_fields() click to toggle source
# File build/evernote-mode-6YHuyP/evernote-mode-0.41/ruby/Evernote/EDAM/errors_types.rb, line 82
def struct_fields; FIELDS; end
validate() click to toggle source
# File build/evernote-mode-6YHuyP/evernote-mode-0.41/ruby/Evernote/EDAM/errors_types.rb, line 84
def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errorCode is unset!') unless @errorCode
  unless @errorCode.nil? || Evernote::EDAM::Error::EDAMErrorCode::VALID_VALUES.include?(@errorCode)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field errorCode!')
  end
end