Class: CadenceThrift::BadRequestError
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- CadenceThrift::BadRequestError
- 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) ⇒ BadRequestError
constructor
A new instance of BadRequestError.
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ BadRequestError
Returns a new instance of BadRequestError.
583 584 585 586 |
# File 'lib/gen/thrift/shared_types.rb', line 583 def initialize(=nil) super() self. = end |
Instance Method Details
#struct_fields ⇒ Object
594 |
# File 'lib/gen/thrift/shared_types.rb', line 594 def struct_fields; FIELDS; end |
#validate ⇒ Object
596 597 598 |
# File 'lib/gen/thrift/shared_types.rb', line 596 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message end |