
org.w3c.dom.events.EventException Maven / Gradle / Ivy
Show all versions of batik Show documentation
/*
* Copyright (c) 2006 World Wide Web Consortium,
*
* (Massachusetts Institute of Technology, European Research Consortium for
* Informatics and Mathematics, Keio University). All Rights Reserved. This
* work is distributed under the W3C(r) Software License [1] in the hope that
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
*/
package org.w3c.dom.events;
/**
* Event operations may throw an EventException
as specified in
* their method descriptions.
*
See also the
Document Object Model (DOM) Level 3 Events Specification
.
* @since DOM Level 2
*/
public class EventException extends RuntimeException {
public EventException(short code, String message) {
super(message);
this.code = code;
}
public short code;
// EventExceptionCode
/**
* If the Event.type
was not specified by initializing the
* event before the method was called. Specification of the
* Event.type
as null
or an empty string will
* also trigger this exception.
*/
public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0;
/**
* If the Event
object is already dispatched in the tree.
* @since DOM Level 3
*/
public static final short DISPATCH_REQUEST_ERR = 1;
}