Class: AdLint::ErrorMessage

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

Overview

DESCRIPTION

Syntactical 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, msg_name, loc, *parts) ⇒ ErrorMessage

Returns a new instance of ErrorMessage.



189
190
191
# File 'lib/adlint/message.rb', line 189

def initialize(msg_catalog, msg_name, loc, *parts)
  super(msg_catalog.lookup(MessageId.new("core", msg_name)), loc, *parts)
end

Instance Method Details

#must_be_deferred?Boolean

Returns:

  • (Boolean)


197
198
199
# File 'lib/adlint/message.rb', line 197

def must_be_deferred?
  false
end

#must_be_unique?Boolean

Returns:

  • (Boolean)


193
194
195
# File 'lib/adlint/message.rb', line 193

def must_be_unique?
  false
end