Exception: Moxml::NamespaceError
- Defined in:
- lib/moxml/error.rb
Overview
Error raised when namespace operations fail
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(message, prefix: nil, uri: nil, element: nil) ⇒ NamespaceError
constructor
A new instance of NamespaceError.
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(, prefix: nil, uri: nil, element: nil) @prefix = prefix @uri = uri @element = element super() end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
76 77 78 |
# File 'lib/moxml/error.rb', line 76 def element @element end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
76 77 78 |
# File 'lib/moxml/error.rb', line 76 def prefix @prefix end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
76 77 78 |
# File 'lib/moxml/error.rb', line 76 def uri @uri end |