Exception: WolfCore::ServiceException
- Defined in:
- lib/wolf_core/application/service_exception.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ ServiceException
constructor
A new instance of ServiceException.
Constructor Details
#initialize(error) ⇒ ServiceException
Returns a new instance of ServiceException.
5 6 7 8 9 10 |
# File 'lib/wolf_core/application/service_exception.rb', line 5 def initialize(error) @error = OpenStruct.new( { message: 'error' }.merge(error) ) super(@error[:message]) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
3 4 5 |
# File 'lib/wolf_core/application/service_exception.rb', line 3 def error @error end |