Exception: VingdError
- Inherits:
-
StandardError
- Object
- StandardError
- VingdError
- Defined in:
- lib/vingd/exceptions.rb
Direct Known Subclasses
Constant Summary collapse
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context = nil, code = nil) ⇒ VingdError
constructor
A new instance of VingdError.
Constructor Details
#initialize(context = nil, code = nil) ⇒ VingdError
Returns a new instance of VingdError.
7 8 9 10 |
# File 'lib/vingd/exceptions.rb', line 7 def initialize(context=nil, code=nil) @context = (context or self.class::DEFAULT_CONTEXT) @code = (code or self.class::DEFAULT_CODE) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/vingd/exceptions.rb', line 4 def code @code end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
4 5 6 |
# File 'lib/vingd/exceptions.rb', line 4 def context @context end |