Exception: Moxml::NamespaceError

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

Overview

Error raised when namespace operations fail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, prefix: nil, uri: nil, element: nil) ⇒ NamespaceError

Returns a new instance of NamespaceError.



78
79
80
81
82
83
# File 'lib/moxml/error.rb', line 78

def initialize(message, prefix: nil, uri: nil, element: nil)
  @prefix = prefix
  @uri = uri
  @element = element
  super(message)
end

Instance Attribute Details

#elementObject (readonly)

Returns the value of attribute element.



76
77
78
# File 'lib/moxml/error.rb', line 76

def element
  @element
end

#prefixObject (readonly)

Returns the value of attribute prefix.



76
77
78
# File 'lib/moxml/error.rb', line 76

def prefix
  @prefix
end

#uriObject (readonly)

Returns the value of attribute uri.



76
77
78
# File 'lib/moxml/error.rb', line 76

def uri
  @uri
end