- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
-
- package javax.resource.spi;
-
- /**An IllegalStateException is thrown from a method if the callee (resource
- * adapter or application server for system contracts) is in an illegal or
- * inappropriate state for the method invocation.
- *
- * @version 0.7
- * @author Rahul Sharma
- */
-
- public class IllegalStateException extends javax.resource.ResourceException {
-
- /**
- * Create an IllegalStateException.
- *
- * @param reason a description of the exception
- * @param errorCode a string specifying the vendor specific
- * error code
- **/
- public
- IllegalStateException(String reason, String errorCode) {
- super(reason, errorCode);
- }
-
- /**
- * Create an IllegalStateException with reason.
- *
- * @param reason a description of the exception
- **/
- public
- IllegalStateException(String reason) {
- super(reason);
- }
- }