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.spi;
  6. /**An IllegalStateException is thrown from a method if the callee (resource
  7. * adapter or application server for system contracts) is in an illegal or
  8. * inappropriate state for the method invocation.
  9. *
  10. * @version 0.7
  11. * @author Rahul Sharma
  12. */
  13. public class IllegalStateException extends javax.resource.ResourceException {
  14. /**
  15. * Create an IllegalStateException.
  16. *
  17. * @param reason a description of the exception
  18. * @param errorCode a string specifying the vendor specific
  19. * error code
  20. **/
  21. public
  22. IllegalStateException(String reason, String errorCode) {
  23. super(reason, errorCode);
  24. }
  25. /**
  26. * Create an IllegalStateException with reason.
  27. *
  28. * @param reason a description of the exception
  29. **/
  30. public
  31. IllegalStateException(String reason) {
  32. super(reason);
  33. }
  34. }