mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add dom::bindings::error::Error::InUseAttribute
This commit is contained in:
parent
c070ad6196
commit
fbe2e4b626
2 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,7 @@ pub enum DOMErrorName {
|
|||
NoModificationAllowedError = DOMExceptionConstants::NO_MODIFICATION_ALLOWED_ERR,
|
||||
NotFoundError = DOMExceptionConstants::NOT_FOUND_ERR,
|
||||
NotSupportedError = DOMExceptionConstants::NOT_SUPPORTED_ERR,
|
||||
InUseAttributeError = DOMExceptionConstants::INUSE_ATTRIBUTE_ERR,
|
||||
InvalidStateError = DOMExceptionConstants::INVALID_STATE_ERR,
|
||||
SyntaxError = DOMExceptionConstants::SYNTAX_ERR,
|
||||
InvalidModificationError = DOMExceptionConstants::INVALID_MODIFICATION_ERR,
|
||||
|
@ -83,6 +84,7 @@ impl<'a> DOMExceptionMethods for JSRef<'a, DOMException> {
|
|||
DOMErrorName::NoModificationAllowedError => "The object can not be modified.",
|
||||
DOMErrorName::NotFoundError => "The object can not be found here.",
|
||||
DOMErrorName::NotSupportedError => "The operation is not supported.",
|
||||
DOMErrorName::InUseAttributeError => "The attribute already in use.",
|
||||
DOMErrorName::InvalidStateError => "The object is in an invalid state.",
|
||||
DOMErrorName::SyntaxError => "The string did not match the expected pattern.",
|
||||
DOMErrorName::InvalidModificationError => "The object can not be modified in this way.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue