Class: ErrorModel
- Inherits:
-
Object
- Object
- ErrorModel
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/airavata_commons_types.rb
Constant Summary collapse
- ERRORID =
1
- CREATIONTIME =
2
- ACTUALERRORMESSAGE =
3
- USERFRIENDLYMESSAGE =
4
- TRANSIENTORPERSISTENT =
5
- ROOTCAUSEERRORIDLIST =
6
- FIELDS =
{ ERRORID => {:type => ::Thrift::Types::STRING, :name => 'errorId', :default => %q"DO_NOT_SET_AT_CLIENTS"}, CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true}, ACTUALERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'actualErrorMessage', :optional => true}, USERFRIENDLYMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'userFriendlyMessage', :optional => true}, TRANSIENTORPERSISTENT => {:type => ::Thrift::Types::BOOL, :name => 'transientOrPersistent', :default => false, :optional => true}, ROOTCAUSEERRORIDLIST => {:type => ::Thrift::Types::LIST, :name => 'rootCauseErrorIdList', :element => {:type => ::Thrift::Types::STRING}, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
27 |
# File 'lib/airavata_commons_types.rb', line 27 def struct_fields; FIELDS; end |
#validate ⇒ Object
29 30 31 |
# File 'lib/airavata_commons_types.rb', line 29 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errorId is unset!') unless @errorId end |