1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.resource;
  6. /**NotSupportedException is thrown to indicate that callee (resource adapter
  7. * or application server for system contracts) cannot execute an operation
  8. * because the operation is not a supported feature. For example, if the
  9. * transaction support level for a resource adapter is NO_TRANSACTION, an
  10. * invocation of ManagedConnection.getXAResource method should throw
  11. * NotSupportedException exception.
  12. *
  13. * @version 0.7
  14. * @author Rahul Sharma
  15. */
  16. public class NotSupportedException extends javax.resource.ResourceException {
  17. /**
  18. * Create a NotSupportedException.
  19. *
  20. * @param reason a description of the exception
  21. * @param errorCode a string specifying the vendor specific
  22. * error code
  23. **/
  24. public
  25. NotSupportedException(String reason, String errorCode) {
  26. super(reason, errorCode);
  27. }
  28. /**
  29. * Create a NotSupportedException with reason.
  30. *
  31. * @param reason a description of the exception
  32. **/
  33. public
  34. NotSupportedException(String reason) {
  35. super(reason);
  36. }
  37. }