Class: CadenceThrift::InternalServiceError
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- CadenceThrift::InternalServiceError
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/thrift/shared_types.rb,
lib/gen/thrift/shared_types.rb
Constant Summary collapse
- MESSAGE =
1
- FIELDS =
{ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'} }
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ InternalServiceError
constructor
A new instance of InternalServiceError.
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ InternalServiceError
Returns a new instance of InternalServiceError.
605 606 607 608 |
# File 'lib/gen/thrift/shared_types.rb', line 605 def initialize(=nil) super() self. = end |
Instance Method Details
#struct_fields ⇒ Object
616 |
# File 'lib/gen/thrift/shared_types.rb', line 616 def struct_fields; FIELDS; end |
#validate ⇒ Object
618 619 620 |
# File 'lib/gen/thrift/shared_types.rb', line 618 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message end |