Exception: THTP::InternalError

Inherits:
ServerError show all
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

Methods inherited from ServerError

#to_thrift

Constructor Details

#initialize(error) ⇒ InternalError

Returns a new instance of InternalError.

Parameters:

  • error (StandardError)


111
112
113
# File 'lib/thtp/errors.rb', line 111

def initialize(error)
  super "Internal error (#{error.class}): #{error.message}"
end

Class Method Details

.typeObject



106
107
108
# File 'lib/thtp/errors.rb', line 106

def self.type
  Thrift::ApplicationException::INTERNAL_ERROR
end