Class: CadenceThrift::LimitExceededError
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- CadenceThrift::LimitExceededError
- 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) ⇒ LimitExceededError
constructor
A new instance of LimitExceededError.
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ LimitExceededError
Returns a new instance of LimitExceededError.
783 784 785 786 |
# File 'lib/gen/thrift/shared_types.rb', line 783 def initialize(=nil) super() self. = end |
Instance Method Details
#struct_fields ⇒ Object
794 |
# File 'lib/gen/thrift/shared_types.rb', line 794 def struct_fields; FIELDS; end |
#validate ⇒ Object
796 797 798 |
# File 'lib/gen/thrift/shared_types.rb', line 796 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message end |