Exception: NewRelic::Agent::LogEventAttributes::TruncationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/new_relic/agent/log_event_attributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute, limit, msg = "Can't truncate") ⇒ TruncationError

Returns a new instance of TruncationError.



31
32
33
34
35
# File 'lib/new_relic/agent/log_event_attributes.rb', line 31

def initialize(attribute, limit, msg = "Can't truncate")
  @attribute = attribute
  @limit = limit
  super(msg)
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



29
30
31
# File 'lib/new_relic/agent/log_event_attributes.rb', line 29

def attribute
  @attribute
end

#limitObject (readonly)

Returns the value of attribute limit.



29
30
31
# File 'lib/new_relic/agent/log_event_attributes.rb', line 29

def limit
  @limit
end