Exception: SimpleRubyService::Error
- Inherits:
-
StandardError
- Object
- StandardError
- SimpleRubyService::Error
- Defined in:
- lib/simple_ruby_service/error.rb
Overview
simple exception class with target and message
Instance Attribute Summary collapse
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, msg) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(target, msg) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/simple_ruby_service/error.rb', line 8 def initialize(target, msg) @target = target super msg end |
Instance Attribute Details
#target ⇒ Object
Returns the value of attribute target.
6 7 8 |
# File 'lib/simple_ruby_service/error.rb', line 6 def target @target end |