Class: CadenceThrift::CancellationAlreadyRequestedError
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- CadenceThrift::CancellationAlreadyRequestedError
- 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) ⇒ CancellationAlreadyRequestedError
constructor
A new instance of CancellationAlreadyRequestedError.
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ CancellationAlreadyRequestedError
Returns a new instance of CancellationAlreadyRequestedError.
713 714 715 716 |
# File 'lib/gen/thrift/shared_types.rb', line 713 def initialize(=nil) super() self. = end |
Instance Method Details
#struct_fields ⇒ Object
724 |
# File 'lib/gen/thrift/shared_types.rb', line 724 def struct_fields; FIELDS; end |
#validate ⇒ Object
726 727 728 |
# File 'lib/gen/thrift/shared_types.rb', line 726 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message end |