Exception: Devpack::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Devpack::Error
- Defined in:
- lib/devpack.rb
Overview
Base class for all Devpack errors. Accepts additional argument ‘meta` to store object info.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
Instance Method Summary collapse
-
#initialize(message = nil, meta = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, meta = nil) ⇒ Error
Returns a new instance of Error.
23 24 25 26 27 |
# File 'lib/devpack.rb', line 23 def initialize( = nil, = nil) @message = @meta = super() end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
21 22 23 |
# File 'lib/devpack.rb', line 21 def @message end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
21 22 23 |
# File 'lib/devpack.rb', line 21 def @meta end |