Exception: Farscape::Exceptions::ProtocolException

Inherits:
IOError
  • Object
show all
Defined in:
lib/farscape/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(representor) ⇒ ProtocolException

Returns a new instance of ProtocolException.



8
9
10
# File 'lib/farscape/errors.rb', line 8

def initialize(representor)
  @representor = representor
end

Instance Attribute Details

#representorObject (readonly)

Returns the value of attribute representor.



6
7
8
# File 'lib/farscape/errors.rb', line 6

def representor
  @representor
end

Instance Method Details

#error_descriptionObject



16
17
18
# File 'lib/farscape/errors.rb', line 16

def error_description
  'Unknown Error'
end

#messageObject



12
13
14
# File 'lib/farscape/errors.rb', line 12

def message
  @representor.representor.to_hash
end