blob: e6ae652a8f1e11bc06ddbc58eda0f25ca5561ba5 [file] [log] [blame]
/*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// http://heycam.github.io/webidl/#idl-DOMException
exception DOMException {
readonly attribute unsigned short code;
readonly attribute DOMString name;
readonly attribute DOMString message;
// List of exceptions and codes found here:
// http://heycam.github.io/webidl/#idl-DOMException-error-names
const unsigned short INDEX_SIZE_ERR = 1;
const unsigned short NOT_FOUND_ERR = 8;
const unsigned short NOT_SUPPORTED_ERR = 9;
const unsigned short INVALID_STATE_ERR = 11;
const unsigned short SYNTAX_ERR = 12;
const unsigned short INVALID_ACCESS_ERR = 15;
const unsigned short QUOTA_EXCEEDED_ERR = 22;
};