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 CommException indicates errors related to failed or interrupted
  7. * communication with an EIS instance. . Examples of common error conditions
  8. * represented by this exception type include: communication protocol error,
  9. * invalidated connection due to server failure.
  10. *
  11. * @version 0.7
  12. * @author Rahul Sharma
  13. */
  14. public class CommException extends javax.resource.ResourceException {
  15. /**
  16. * Create a CommException.
  17. *
  18. * @param reason a description of the exception
  19. * @param errorCode a string specifying the vendor specific
  20. * error code
  21. **/
  22. public
  23. CommException(String reason, String errorCode) {
  24. super(reason, errorCode);
  25. }
  26. /**
  27. * Create a CommException with a reason.
  28. *
  29. * @param reason a description of the exception
  30. **/
  31. public
  32. CommException(String reason) {
  33. super(reason);
  34. }
  35. }