Exception: RightScale::Serializer::SerializationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/right_agent/serialize/serializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action, packet, serializers, msg = nil) ⇒ SerializationError

Returns a new instance of SerializationError.



62
63
64
65
66
# File 'lib/right_agent/serialize/serializer.rb', line 62

def initialize(action, packet, serializers, msg = nil)
  @action, @packet = action, packet
  msg = " (#{msg})" if msg && !msg.empty?
  super("Could not #{action} packet using #{serializers.inspect}#{msg}")
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



61
62
63
# File 'lib/right_agent/serialize/serializer.rb', line 61

def action
  @action
end

#packetObject

Returns the value of attribute packet.



61
62
63
# File 'lib/right_agent/serialize/serializer.rb', line 61

def packet
  @packet
end