Exception: THTP::InternalError
- Inherits:
-
ServerError
- Object
- StandardError
- Error
- ServerError
- THTP::InternalError
- Defined in:
- lib/thtp/errors.rb
Overview
Indicates an uncategorised exception – an error unrelated to Thrift, somewhere in application code.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(error) ⇒ InternalError
constructor
A new instance of InternalError.
Methods inherited from ServerError
Constructor Details
#initialize(error) ⇒ InternalError
Returns a new instance of InternalError.
111 112 113 |
# File 'lib/thtp/errors.rb', line 111 def initialize(error) super "Internal error (#{error.class}): #{error.}" end |
Class Method Details
.type ⇒ Object
106 107 108 |
# File 'lib/thtp/errors.rb', line 106 def self.type Thrift::ApplicationException::INTERNAL_ERROR end |