Class: CadenceThrift::DomainAlreadyExistsError
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- CadenceThrift::DomainAlreadyExistsError
- 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) ⇒ DomainAlreadyExistsError
constructor
A new instance of DomainAlreadyExistsError.
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ DomainAlreadyExistsError
Returns a new instance of DomainAlreadyExistsError.
627 628 629 630 |
# File 'lib/gen/thrift/shared_types.rb', line 627 def initialize(=nil) super() self. = end |
Instance Method Details
#struct_fields ⇒ Object
638 |
# File 'lib/gen/thrift/shared_types.rb', line 638 def struct_fields; FIELDS; end |
#validate ⇒ Object
640 641 642 |
# File 'lib/gen/thrift/shared_types.rb', line 640 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message end |