Exception: SpecException
- Defined in:
- lib/poolparty/exceptions/SpecException.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(msg = "Custom resource exception") ⇒ SpecException
constructor
A new instance of SpecException.
Constructor Details
#initialize(msg = "Custom resource exception") ⇒ SpecException
Returns a new instance of SpecException.
4 5 6 |
# File 'lib/poolparty/exceptions/SpecException.rb', line 4 def initialize(msg="Custom resource exception") @message = "Spec error: #{msg}" end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
2 3 4 |
# File 'lib/poolparty/exceptions/SpecException.rb', line 2 def @message end |