Class: Lutaml::Xml::Error::InvalidNamespaceError
- Inherits:
-
XmlError
- Object
- Model::Error
- XmlError
- Lutaml::Xml::Error::InvalidNamespaceError
- Defined in:
- lib/lutaml/xml/error/invalid_namespace_error.rb
Overview
Raised when an invalid namespace class is provided
This error is raised when a namespace parameter is not a valid XmlNamespace class, :blank, or :inherit symbol.
Instance Attribute Summary collapse
-
#expected ⇒ String
readonly
The expected namespace type.
-
#received ⇒ Object
readonly
The actual value received.
Instance Method Summary collapse
-
#initialize(expected: nil, got: nil, message: nil) ⇒ InvalidNamespaceError
constructor
Create a new InvalidNamespaceError.
Constructor Details
#initialize(expected: nil, got: nil, message: nil) ⇒ InvalidNamespaceError
Create a new InvalidNamespaceError
25 26 27 28 29 30 |
# File 'lib/lutaml/xml/error/invalid_namespace_error.rb', line 25 def initialize(expected: nil, got: nil, message: nil) @expected = expected @received = got super( || ) end |
Instance Attribute Details
#expected ⇒ String (readonly)
Returns the expected namespace type.
15 16 17 |
# File 'lib/lutaml/xml/error/invalid_namespace_error.rb', line 15 def expected @expected end |
#received ⇒ Object (readonly)
Returns the actual value received.
18 19 20 |
# File 'lib/lutaml/xml/error/invalid_namespace_error.rb', line 18 def received @received end |