Exception: Errors::Fatal
- Inherits:
-
Exception
- Object
- Exception
- Errors::Fatal
- Defined in:
- lib/Olib/core/errors.rb
Overview
used to exit a thread early due to an error that Olib cannot resolve internally
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ Fatal
constructor
A new instance of Fatal.
Constructor Details
#initialize(message = nil) ⇒ Fatal
Returns a new instance of Fatal.
27 28 29 30 31 32 33 34 |
# File 'lib/Olib/core/errors.rb', line 27 def initialize(=nil) unless = String.new .concat "\n\nAn Errors::Fatal was raised but not rescued in an Olib method" .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 |