Class: CadenceThrift::QueryFailedError
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- CadenceThrift::QueryFailedError
- 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) ⇒ QueryFailedError
constructor
A new instance of QueryFailedError.
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ QueryFailedError
Returns a new instance of QueryFailedError.
735 736 737 738 |
# File 'lib/gen/thrift/shared_types.rb', line 735 def initialize(=nil) super() self. = end |
Instance Method Details
#struct_fields ⇒ Object
746 |
# File 'lib/gen/thrift/shared_types.rb', line 746 def struct_fields; FIELDS; end |
#validate ⇒ Object
748 749 750 |
# File 'lib/gen/thrift/shared_types.rb', line 748 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message end |