mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Document error.rs.
This commit is contained in:
parent
2a9acdcb73
commit
ecf0317bc0
1 changed files with 20 additions and 2 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
//! Utilities to throw exceptions from Rust bindings.
|
||||
|
||||
#![deny(missing_docs)]
|
||||
|
||||
use dom::bindings::conversions::ToJSValConvertible;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::domexception::DOMException;
|
||||
|
@ -21,22 +23,38 @@ use std::ptr;
|
|||
/// DOM exceptions that can be thrown by a native DOM method.
|
||||
#[deriving(Show, Clone)]
|
||||
pub enum Error {
|
||||
/// IndexSizeError
|
||||
IndexSize,
|
||||
FailureUnknown,
|
||||
/// NotFoundError
|
||||
NotFound,
|
||||
/// HierarchyRequestError
|
||||
HierarchyRequest,
|
||||
/// InvalidCharacterError
|
||||
InvalidCharacter,
|
||||
/// NotSupportedError
|
||||
NotSupported,
|
||||
/// InvalidStateError
|
||||
InvalidState,
|
||||
/// SyntaxError
|
||||
Syntax,
|
||||
/// NamespaceError
|
||||
NamespaceError,
|
||||
/// InvalidAccessError
|
||||
InvalidAccess,
|
||||
/// SecurityError
|
||||
Security,
|
||||
/// NetworkError
|
||||
Network,
|
||||
/// AbortError
|
||||
Abort,
|
||||
/// TimeoutError
|
||||
Timeout,
|
||||
/// DataCloneError
|
||||
DataClone,
|
||||
NoModificationAllowedError
|
||||
/// NoModificationAllowedError
|
||||
NoModificationAllowedError,
|
||||
/// Unknown failure
|
||||
FailureUnknown,
|
||||
}
|
||||
|
||||
/// The return type for IDL operations that can throw DOM exceptions.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue