Exception: Taka::DOMException
- Inherits:
-
StandardError
- Object
- StandardError
- Taka::DOMException
- Defined in:
- lib/taka/dom_exception.rb
Constant Summary collapse
- NOEXCEPTION_ERR =
0- INDEX_SIZE_ERR =
1- DOMSTRING_SIZE_ERR =
2- HIERARCHY_REQUEST_ERR =
3- WRONG_DOCUMENT_ERR =
4- INVALID_CHARACTER_ERR =
5- NO_DATA_ALLOWED_ERR =
6- NO_MODIFICATION_ALLOWED_ERR =
7- NOT_FOUND_ERR =
8- NOT_SUPPORTED_ERR =
9- INUSE_ATTRIBUTE_ERR =
10- INVALID_STATE_ERR =
11- SYNTAX_ERR =
12- INVALID_MODIFICATION_ERR =
13- NAMESPACE_ERR =
14- INVALID_ACCESS_ERR =
15- NULL_POINTER_ERR =
100
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message = nil) ⇒ DOMException
constructor
A new instance of DOMException.
Constructor Details
#initialize(code, message = nil) ⇒ DOMException
Returns a new instance of DOMException.
24 25 26 27 |
# File 'lib/taka/dom_exception.rb', line 24 def initialize code, = nil @code = code super() end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
22 23 24 |
# File 'lib/taka/dom_exception.rb', line 22 def code @code end |