Class/Module Index [+]

Quicksearch

Evernote::EDAM::Error::EDAMUserException

This exception is thrown by EDAM procedures when a call fails as a result of a problem that a user may be able to resolve. For example, if the user attempts to add a note to their account which would exceed their storage quota, this type of exception may be thrown to indicate the source of the error so that they can choose an alternate action.

This exception would not be used for internal system errors that do not reflect user actions, but rather reflect a problem within the service that the user cannot resolve.

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

must be one of the values of EDAMErrorCode.

parameter: If the error applied to a particular input parameter, this will

indicate which parameter.

Public Instance Methods

struct_fields() click to toggle source
# File usr/lib/ruby/vendor_ruby/Evernote/EDAM/errors_types.rb, line 53
def struct_fields; FIELDS; end
validate() click to toggle source
# File usr/lib/ruby/vendor_ruby/Evernote/EDAM/errors_types.rb, line 55
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.