class Evernote::EDAM::Error::EDAMSystemException
This exception is thrown by EDAM
procedures when a call fails as a result of a problem in the service that could not be changed through caller 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
rateLimitDuration: Indicates the minimum number of seconds that an application should
expect subsequent API calls for this user to fail. The application should not retry API requests for the user until at least this many seconds have passed. Present only when errorCode is RATE_LIMIT_REACHED,
Constants
- ERRORCODE
- FIELDS
- MESSAGE
- RATELIMITDURATION
Public Instance Methods
struct_fields()
click to toggle source
# File lib/Evernote/EDAM/errors_types.rb, line 97 def struct_fields; FIELDS; end
validate()
click to toggle source
# File lib/Evernote/EDAM/errors_types.rb, line 99 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