Exception: Errors::Fatal

Inherits:
Exception
  • Object
show all
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

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(message=nil)
  unless message
    message = String.new
    message.concat "\n\nAn Errors::Fatal was raised but not rescued in an Olib method"
    message.concat "\nyou should rescue this error if it isn't fatal and you don't want your script to break"
  end
  super Errors.indent message
end