Exception: Evernote::EDAM::Error::EDAMSystemException
- Inherits:
-
Thrift::Exception
- Object
- StandardError
- Thrift::Exception
- Evernote::EDAM::Error::EDAMSystemException
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/Evernote/EDAM/errors_types.rb
Overview
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,
Constant Summary collapse
- ERRORCODE =
1
- MESSAGE =
2
- RATELIMITDURATION =
3
- FIELDS =
{ ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => ::Evernote::EDAM::Error::EDAMErrorCode}, MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true}, RATELIMITDURATION => {:type => ::Thrift::Types::I32, :name => 'rateLimitDuration', :optional => true} }
Constants included from Thrift::Struct_Union
Thrift::Struct_Union::CONTAINER_TYPES
Instance Attribute Summary
Attributes inherited from Thrift::Exception
Instance Method Summary collapse
Methods included from Thrift::Struct
#<=>, #==, #differences, #eql?, field_accessor, #fields_with_default_values, generate_accessors, #hash, #initialize, #inspect, qmark_isset_method, #read, #write
Methods included from Thrift::Struct_Union
#each_field, #field_info, #inspect_collection, #inspect_field, #is_container?, #name_to_id, #read_field, #sorted_field_ids, #write_container, #write_data
Methods inherited from Thrift::Exception
Instance Method Details
#struct_fields ⇒ Object
97 |
# File 'lib/Evernote/EDAM/errors_types.rb', line 97 def struct_fields; FIELDS; end |
#validate ⇒ Object
99 100 101 102 103 104 |
# 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 |