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. /** ResourceAdapterInternalException indicates any system-level error
  7. * conditions related to a resource adapter. The common conditions indicated
  8. * by this exception type are:
  9. * <UL>
  10. * <LI>invalid configuration for creation of a new physical connection. An
  11. example is invalid server name for a target EIS instance.
  12. * <LI>failure to create a physical connection to a EIS instance due to
  13. * communication protocol error or any resource adapter implementation
  14. * specific error.
  15. * <LI>error conditions internal to resource adapter implementation.
  16. * </UL>
  17. * @version 0.7
  18. * @author Rahul Sharma
  19. */
  20. public class ResourceAdapterInternalException extends javax.resource.ResourceException {
  21. /**
  22. * Create a ResourceAdapterInternalException.
  23. *
  24. * @param reason a description of the exception
  25. * @param errorCode a string specifying the vendor specific
  26. * error code
  27. **/
  28. public
  29. ResourceAdapterInternalException(String reason, String errorCode) {
  30. super(reason, errorCode);
  31. }
  32. /**
  33. * Create a SecurityException with reason.
  34. *
  35. * @param reason a description of the exception
  36. **/
  37. public
  38. ResourceAdapterInternalException(String reason) {
  39. super(reason);
  40. }
  41. }