Exception: AdLint::InternalError

Inherits:
Error
  • Object
show all
Defined in:
lib/adlint/error.rb

Overview

DESCRIPTION

AdLint fatal internal error.

Instance Attribute Summary

Attributes inherited from Error

#location, #parts

Instance Method Summary collapse

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.message, loc, "#{cause_ex.class} : #{cause_ex.message}")
end

Instance Method Details

#backtraceObject

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

#messageObject

DESCRIPTION

Reads the message of this error.

RETURN VALUE

String – Error message.



88
89
90
# File 'lib/adlint/error.rb', line 88

def message
  @cause_ex.message
end

#message_nameObject



79
80
81
# File 'lib/adlint/error.rb', line 79

def message_name
  :X0001
end