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