Exception: RightScale::Serializer::SerializationError
- Defined in:
- lib/right_agent/serialize/serializer.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#packet ⇒ Object
Returns the value of attribute packet.
Instance Method Summary collapse
-
#initialize(action, packet, serializers, msg = nil) ⇒ SerializationError
constructor
A new instance of SerializationError.
Constructor Details
#initialize(action, packet, serializers, msg = nil) ⇒ SerializationError
Returns a new instance of SerializationError.
52 53 54 55 56 |
# File 'lib/right_agent/serialize/serializer.rb', line 52 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
#action ⇒ Object
Returns the value of attribute action.
51 52 53 |
# File 'lib/right_agent/serialize/serializer.rb', line 51 def action @action end |
#packet ⇒ Object
Returns the value of attribute packet.
51 52 53 |
# File 'lib/right_agent/serialize/serializer.rb', line 51 def packet @packet end |