diff options
author | Patrick Shaughnessy <pshaughn@comcast.net> | 2020-01-28 14:22:13 -0500 |
---|---|---|
committer | Patrick Shaughnessy <pshaughn@comcast.net> | 2020-01-28 14:22:13 -0500 |
commit | 15e1bdf1bf0d5950349bfe6878d90bf4101bf8a8 (patch) | |
tree | bc79d6e183b6d8b168753ff6207436d67d1183bb /components/script/dom/domexception.rs | |
parent | 2b3c4eba2dc90901d09d9b3cd16a69f79188b069 (diff) | |
download | servo-15e1bdf1bf0d5950349bfe6878d90bf4101bf8a8.tar.gz servo-15e1bdf1bf0d5950349bfe6878d90bf4101bf8a8.zip |
Add an unused but part-of-the-spec exception type
Diffstat (limited to 'components/script/dom/domexception.rs')
-rw-r--r-- | components/script/dom/domexception.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/domexception.rs b/components/script/dom/domexception.rs index e8d848d0b9f..e749541eace 100644 --- a/components/script/dom/domexception.rs +++ b/components/script/dom/domexception.rs @@ -32,6 +32,7 @@ pub enum DOMErrorName { NetworkError = DOMExceptionConstants::NETWORK_ERR, AbortError = DOMExceptionConstants::ABORT_ERR, TypeMismatchError = DOMExceptionConstants::TYPE_MISMATCH_ERR, + URLMismatchError = DOMExceptionConstants::URL_MISMATCH_ERR, QuotaExceededError = DOMExceptionConstants::QUOTA_EXCEEDED_ERR, TimeoutError = DOMExceptionConstants::TIMEOUT_ERR, InvalidNodeTypeError = DOMExceptionConstants::INVALID_NODE_TYPE_ERR, @@ -60,6 +61,7 @@ impl DOMErrorName { "NetworkError" => Some(DOMErrorName::NetworkError), "AbortError" => Some(DOMErrorName::AbortError), "TypeMismatchError" => Some(DOMErrorName::TypeMismatchError), + "URLMismatchError" => Some(DOMErrorName::URLMismatchError), "QuotaExceededError" => Some(DOMErrorName::QuotaExceededError), "TimeoutError" => Some(DOMErrorName::TimeoutError), "InvalidNodeTypeError" => Some(DOMErrorName::InvalidNodeTypeError), @@ -102,6 +104,7 @@ impl DOMException { DOMErrorName::NetworkError => "A network error occurred.", DOMErrorName::AbortError => "The operation was aborted.", DOMErrorName::TypeMismatchError => "The given type does not match any expected type.", + DOMErrorName::URLMismatchError => "The given URL does not match another URL.", DOMErrorName::QuotaExceededError => "The quota has been exceeded.", DOMErrorName::TimeoutError => "The operation timed out.", DOMErrorName::InvalidNodeTypeError => { |