Exception: RuntimeException

Inherits:
Exception show all
Defined in:
lib/poolparty/exceptions/RuntimeException.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messageObject (readonly)

Returns the value of attribute message.



2
3
4
# File 'lib/poolparty/exceptions/RuntimeException.rb', line 2

def message
  @message
end