Exception: Errors::ContainerFull
- Inherits:
-
Exception
- Object
- Exception
- Errors::ContainerFull
- Defined in:
- lib/Olib/core/errors.rb
Overview
If you have a full container and a script/action depends on it, this is thrown rescue it for logic
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ ContainerFull
constructor
A new instance of ContainerFull.
Constructor Details
#initialize(message = nil) ⇒ ContainerFull
Returns a new instance of ContainerFull.
40 41 42 43 44 45 46 47 |
# File 'lib/Olib/core/errors.rb', line 40 def initialize(=nil) unless = String.new .concat "\n\nYou tried to add stuff to a container that was full" .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 |