1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.transaction;
  6. /**
  7. * The SystemException is thrown by the transaction manager to
  8. * indicate that it has encountered an unexpected error condition
  9. * that prevents future transaction services from proceeding.
  10. */
  11. public class SystemException extends java.lang.Exception {
  12. /**
  13. * The error code to create the SystemException with
  14. *
  15. * @serial The error code for the exception
  16. */
  17. public int errorCode;
  18. public SystemException()
  19. {
  20. super();
  21. }
  22. /**
  23. * Create an SystemException with a given string.
  24. *
  25. * @param s The string message for the exception
  26. */
  27. public SystemException(String s)
  28. {
  29. super(s);
  30. }
  31. /**
  32. * Create an SystemException with a given error code.
  33. *
  34. * @param errCode The error code for the exception
  35. */
  36. public SystemException(int errcode)
  37. {
  38. super();
  39. errorCode = errcode;
  40. }
  41. }