Exception: Moxml::NamespaceDeclarationError

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

Overview

Namespace related errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, prefix, uri) ⇒ NamespaceDeclarationError

Returns a new instance of NamespaceDeclarationError.



151
152
153
154
155
# File 'lib/moxml/errors.rb', line 151

def initialize(message, prefix, uri)
  @prefix = prefix
  @uri = uri
  super("#{message} (Prefix: #{prefix}, URI: #{uri})")
end

Instance Attribute Details

#prefixObject (readonly)

Returns the value of attribute prefix.



149
150
151
# File 'lib/moxml/errors.rb', line 149

def prefix
  @prefix
end

#uriObject (readonly)

Returns the value of attribute uri.



149
150
151
# File 'lib/moxml/errors.rb', line 149

def uri
  @uri
end