Exception: NewRelic::Agent::LogEventAttributes::TruncationError
- Inherits:
-
StandardError
- Object
- StandardError
- NewRelic::Agent::LogEventAttributes::TruncationError
- Defined in:
- lib/new_relic/agent/log_event_attributes.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
Instance Method Summary collapse
-
#initialize(attribute, limit, msg = "Can't truncate") ⇒ TruncationError
constructor
A new instance of TruncationError.
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
#attribute ⇒ Object (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 |
#limit ⇒ Object (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 |