- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
-
- package javax.resource;
-
- /**NotSupportedException is thrown to indicate that callee (resource adapter
- * or application server for system contracts) cannot execute an operation
- * because the operation is not a supported feature. For example, if the
- * transaction support level for a resource adapter is NO_TRANSACTION, an
- * invocation of ManagedConnection.getXAResource method should throw
- * NotSupportedException exception.
- *
- * @version 0.7
- * @author Rahul Sharma
- */
-
- public class NotSupportedException extends javax.resource.ResourceException {
-
- /**
- * Create a NotSupportedException.
- *
- * @param reason a description of the exception
- * @param errorCode a string specifying the vendor specific
- * error code
- **/
- public
- NotSupportedException(String reason, String errorCode) {
- super(reason, errorCode);
- }
-
- /**
- * Create a NotSupportedException with reason.
- *
- * @param reason a description of the exception
- **/
- public
- NotSupportedException(String reason) {
- super(reason);
- }
- }