Exception: Fluent::Plugin::JsonSizeLimit::InvalidStringEncodingError
- Inherits:
-
Error
- Object
- StandardError
- Error
- Fluent::Plugin::JsonSizeLimit::InvalidStringEncodingError
- Defined in:
- lib/fluent/plugin/json_size_limit/errors.rb
Instance Attribute Summary collapse
-
#encoding ⇒ Object
readonly
Returns the value of attribute encoding.
Instance Method Summary collapse
-
#initialize(encoding) ⇒ InvalidStringEncodingError
constructor
A new instance of InvalidStringEncodingError.
Constructor Details
#initialize(encoding) ⇒ InvalidStringEncodingError
Returns a new instance of InvalidStringEncodingError.
37 38 39 40 |
# File 'lib/fluent/plugin/json_size_limit/errors.rb', line 37 def initialize(encoding) @encoding = encoding super("Record contains a string that cannot be represented safely as JSON (#{encoding})") end |
Instance Attribute Details
#encoding ⇒ Object (readonly)
Returns the value of attribute encoding.
35 36 37 |
# File 'lib/fluent/plugin/json_size_limit/errors.rb', line 35 def encoding @encoding end |