Class: AdLint::FatalErrorMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/adlint/message.rb

Overview

DESCRIPTION

AdLint specific internal fatal error message.

Instance Attribute Summary

Attributes inherited from Message

#location

Instance Method Summary collapse

Methods inherited from Message

#complement_with, #eql?, #hash, #id, #print_as_csv, #print_as_str, #to_s

Constructor Details

#initialize(msg_catalog, cause_ex) ⇒ FatalErrorMessage

DESCRIPTION

Constructs a AdLint specific internal fatal error message.

PARAMETER

msg_catalog

MessageCatalog – Message catalog.

cause_ex

Exception – Cause exception.



230
231
232
233
234
235
# File 'lib/adlint/message.rb', line 230

def initialize(msg_catalog, cause_ex)
  msg_id = MessageId.new("core", cause_ex.message_name)
  super(msg_catalog.lookup(msg_id), cause_ex.location || Location.new,
        *cause_ex.parts)
  @cause_ex = cause_ex
end

Instance Method Details

#must_be_deferred?Boolean

Returns:

  • (Boolean)


241
242
243
# File 'lib/adlint/message.rb', line 241

def must_be_deferred?
  false
end

#must_be_unique?Boolean

Returns:

  • (Boolean)


237
238
239
# File 'lib/adlint/message.rb', line 237

def must_be_unique?
  false
end