Exception: AdLint::InternalError
- Defined in:
- lib/adlint/error.rb
Overview
DESCRIPTION
AdLint fatal internal error.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#backtrace ⇒ Object
DESCRIPTION Reads the backtrace information of this error.
-
#initialize(cause_ex, loc) ⇒ InternalError
constructor
DESCRIPTION Constructs an AdLint specific fatal internal error object.
-
#message ⇒ Object
DESCRIPTION Reads the message of this error.
- #message_name ⇒ Object
Constructor Details
#initialize(cause_ex, loc) ⇒ InternalError
DESCRIPTION
Constructs an AdLint specific fatal internal error object.
PARAMETER
- cause_ex
-
Exception – Cause exception object.
- loc
-
Location – Location where an error occured.
74 75 76 77 |
# File 'lib/adlint/error.rb', line 74 def initialize(cause_ex, loc) @cause_ex = cause_ex super(cause_ex., loc, "#{cause_ex.class} : #{cause_ex.}") end |
Instance Method Details
#backtrace ⇒ Object
DESCRIPTION
Reads the backtrace information of this error.
RETURN VALUE
Array – Backtrace information.
97 98 99 |
# File 'lib/adlint/error.rb', line 97 def backtrace @cause_ex.backtrace end |
#message ⇒ Object
DESCRIPTION
Reads the message of this error.
RETURN VALUE
String – Error message.
88 89 90 |
# File 'lib/adlint/error.rb', line 88 def @cause_ex. end |
#message_name ⇒ Object
79 80 81 |
# File 'lib/adlint/error.rb', line 79 def :X0001 end |