Code

updated spanish.nsh and inkscape.nsi to reflect latest file-changes
[inkscape.git] / trunk / src / bind / java / org / w3c / dom / events / EventException.java
1 /*
2  * Copyright (c) 2003 World Wide Web Consortium,
3  *
4  * (Massachusetts Institute of Technology, European Research Consortium for
5  * Informatics and Mathematics, Keio University). All Rights Reserved. This
6  * work is distributed under the W3C(r) Software License [1] in the hope that
7  * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
8  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9  *
10  * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
11  */
13 package org.w3c.dom.events;
15 /**
16  *  Event operations may throw an <code>EventException</code> as specified in 
17  * their method descriptions. 
18  * <p>See also the <a href='http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107'>Document Object Model (DOM) Level 3 Events Specification</a>.
19  * @since DOM Level 2
20  */
21 public class EventException extends RuntimeException {
22     public EventException(short code, String message) {
23        super(message);
24        this.code = code;
25     }
26     public short   code;
27     // EventExceptionCode
28     /**
29      *  If the <code>Event.type</code> was not specified by initializing the 
30      * event before the method was called. Specification of the 
31      * <code>Event.type</code> as <code>null</code> or an empty string will 
32      * also trigger this exception. 
33      */
34     public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0;
35     /**
36      *  If the <code>Event</code> object is already dispatched in the tree. 
37      * @since DOM Level 3
38      */
39     public static final short DISPATCH_REQUEST_ERR      = 1;
41 }