Exception: FatalError

Inherits:
Exception
  • Object
show all
Defined in:
lib/ec2/amitools/exception.rb

Overview

An exception thrown to indicate an unrecoverable error has been encountered. The process should be terminated and the exception’s message should be displayed to the user.

Instance Method Summary collapse

Constructor Details

#initialize(message, cause = nil) ⇒ FatalError

((|message|)) The message that should be displayed to the user. ((|cause|)) The exception that caused the fatal error.



21
22
23
24
# File 'lib/ec2/amitools/exception.rb', line 21

def initialize(message, cause = nil)
  super(message)
  @cause = cause
end