Exception: SimpleRubyService::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/simple_ruby_service/error.rb

Overview

simple exception class with target and message

Direct Known Subclasses

Failure, Invalid

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#targetObject

Returns the value of attribute target.



6
7
8
# File 'lib/simple_ruby_service/error.rb', line 6

def target
  @target
end