Class: AuthenticationException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- AuthenticationException
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/airavata_errors_types.rb
Overview
This exception is thrown for invalid sshKeyAuthentication requests.
message: contains the cause of the authorization failure.
Constant Summary collapse
- MESSAGE =
1
- FIELDS =
{ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'} }
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ AuthenticationException
constructor
A new instance of AuthenticationException.
- #struct_fields ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ AuthenticationException
Returns a new instance of AuthenticationException.
123 124 125 126 |
# File 'lib/airavata_errors_types.rb', line 123 def initialize(=nil) super() self. = end |
Instance Method Details
#struct_fields ⇒ Object
134 |
# File 'lib/airavata_errors_types.rb', line 134 def struct_fields; FIELDS; end |
#validate ⇒ Object
136 137 138 |
# File 'lib/airavata_errors_types.rb', line 136 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field message is unset!') unless @message end |