Exception: THTP::DeserializationError

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

Overview

Indicates a failure to parse Thrift according to schema

Instance Method Summary collapse

Methods inherited from SerializationError

#initialize, type

Methods inherited from ServerError

#to_thrift, type

Constructor Details

This class inherits a constructor from THTP::SerializationError

Instance Method Details

#friendly_message(error) ⇒ Object

Parameters:

  • error (StandardError)

    the exception encountered while deserialising



91
92
93
# File 'lib/thtp/errors.rb', line 91

def friendly_message(error)
  "Deserialization error (#{friendly_type(error)}): #{error.message}"
end