Exception: Tramway::Error
- Inherits:
-
Exception
- Object
- Exception
- Tramway::Error
- Defined in:
- lib/tramway/error.rb
Instance Method Summary collapse
-
#initialize(*args, plugin: nil, method: nil, message: nil) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
- #properties ⇒ Object
Constructor Details
#initialize(*args, plugin: nil, method: nil, message: nil) ⇒ Error
Returns a new instance of Error.
2 3 4 5 6 7 8 |
# File 'lib/tramway/error.rb', line 2 def initialize(*args, plugin: nil, method: nil, message: nil) @properties ||= {} @properties[:plugin] = plugin @properties[:method] = method @properties[:message] = super(*args) end |
Instance Method Details
#message ⇒ Object
10 11 12 |
# File 'lib/tramway/error.rb', line 10 def "Plugin: #{@properties[:plugin]}; Method: #{@properties[:method]}; Message: #{@properties[:message]}" end |
#properties ⇒ Object
14 15 16 |
# File 'lib/tramway/error.rb', line 14 def properties @properties ||= {} end |