Exception: Errors::InsufficientFunds
- Inherits:
-
Exception
- Object
- Exception
- Errors::InsufficientFunds
- Defined in:
- lib/Olib/core/errors.rb
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ InsufficientFunds
constructor
A new instance of InsufficientFunds.
Constructor Details
#initialize(message = nil) ⇒ InsufficientFunds
Returns a new instance of InsufficientFunds.
51 52 53 54 55 56 57 58 |
# File 'lib/Olib/core/errors.rb', line 51 def initialize(=nil) unless = String.new .concat "\n\nYou tried to do something that costs more money that your character had on them" .concat "\nyou should rescue this error if it isn't fatal and you don't want your script to break" end super Errors.indent end |