Exception: Moxml::EncodingError

Inherits:
Error
  • Object
show all
Defined in:
lib/moxml/errors.rb

Overview

Encoding errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, encoding) ⇒ EncodingError

Returns a new instance of EncodingError.



44
45
46
47
# File 'lib/moxml/errors.rb', line 44

def initialize(message, encoding)
  @encoding = encoding
  super("#{message} (Encoding: #{encoding})")
end

Instance Attribute Details

#encodingObject (readonly)

Returns the value of attribute encoding.



42
43
44
# File 'lib/moxml/errors.rb', line 42

def encoding
  @encoding
end