Class: CadenceThrift::AccessDeniedError
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- CadenceThrift::AccessDeniedError
- 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) ⇒ AccessDeniedError
constructor
A new instance of AccessDeniedError.
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ AccessDeniedError
Returns a new instance of AccessDeniedError.
805 806 807 808 |
# File 'lib/gen/thrift/shared_types.rb', line 805 def initialize(=nil) super() self. = end |
Instance Method Details
#struct_fields ⇒ Object
816 |
# File 'lib/gen/thrift/shared_types.rb', line 816 def struct_fields; FIELDS; end |
#validate ⇒ Object
818 819 820 |
# File 'lib/gen/thrift/shared_types.rb', line 818 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message end |