Class | Evernote::EDAM::Error::EDAMSystemException |
In: |
ruby/lib/Evernote/EDAM/errors_types.rb
|
Parent: | ::Thrift::Exception |
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
ERRORCODE | = | 1 |
MESSAGE | = | 2 |
FIELDS | = | { ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => Evernote::EDAM::Error::EDAMErrorCode}, MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true} |
# File ruby/lib/Evernote/EDAM/errors_types.rb, line 84 84: def validate 85: raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errorCode is unset!') unless @errorCode 86: unless @errorCode.nil? || Evernote::EDAM::Error::EDAMErrorCode::VALID_VALUES.include?(@errorCode) 87: raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field errorCode!') 88: end 89: end