Exception: THTP::SerializationError

Inherits:
ServerError show all
Defined in:
lib/thtp/errors.rb

Overview

Indicates a failure to turn a value into Thrift bytes according to schema

Direct Known Subclasses

DeserializationError

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ServerError

#to_thrift

Constructor Details

#initialize(error) ⇒ SerializationError

Returns a new instance of SerializationError.

Parameters:

  • error (StandardError)

    the exception encountered while serialising



65
66
67
# File 'lib/thtp/errors.rb', line 65

def initialize(error)
  super friendly_message(error)
end

Class Method Details

.typeObject



60
61
62
# File 'lib/thtp/errors.rb', line 60

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