Exception: Artery::FormatError
- Defined in:
- lib/artery/errors.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
Returns the value of attribute msg.
-
#route ⇒ Object
Returns the value of attribute route.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(route, msg, **context) ⇒ FormatError
constructor
A new instance of FormatError.
- #message ⇒ Object
Constructor Details
#initialize(route, msg, **context) ⇒ FormatError
Returns a new instance of FormatError.
37 38 39 40 41 42 |
# File 'lib/artery/errors.rb', line 37 def initialize(route, msg, **context) @route = route @msg = msg super(nil, **context) end |
Instance Attribute Details
#msg ⇒ Object
Returns the value of attribute msg.
35 36 37 |
# File 'lib/artery/errors.rb', line 35 def msg @msg end |
#route ⇒ Object
Returns the value of attribute route.
35 36 37 |
# File 'lib/artery/errors.rb', line 35 def route @route end |
Instance Method Details
#message ⇒ Object
44 45 46 |
# File 'lib/artery/errors.rb', line 44 def "Received message from #{route} in wrong format: #{msg}" end |