Class: Confium::ParseError
- Inherits:
-
Error
- Object
- Error
- Confium::ParseError
- Defined in:
- lib/confium/errors/parse_error.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(message = nil, details_hash = nil, **kwargs) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message = nil, details_hash = nil, **kwargs) ⇒ ParseError
Returns a new instance of ParseError.
8 9 10 11 12 13 |
# File 'lib/confium/errors/parse_error.rb', line 8 def initialize( = nil, details_hash = nil, **kwargs) , kwargs = Confium::Errors::Coerce.args(, details_hash, kwargs) @format = kwargs.delete(:format) @offset = kwargs.delete(:offset) super(, details: { format: @format, offset: @offset, **kwargs }) end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
6 7 8 |
# File 'lib/confium/errors/parse_error.rb', line 6 def format @format end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
6 7 8 |
# File 'lib/confium/errors/parse_error.rb', line 6 def offset @offset end |