1. /*
  2. * @(#)UserException.java 1.42 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * The root class for CORBA IDL-defined user exceptions.
  10. * All CORBA user exceptions are checked exceptions, which
  11. * means that they need to
  12. * be declared in method signatures.
  13. *
  14. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  15. * Java IDL exceptions</A>
  16. * @version 1.28 09/09/97
  17. */
  18. public abstract class UserException extends java.lang.Exception implements org.omg.CORBA.portable.IDLEntity {
  19. /**
  20. * Constructs a <code>UserException</code> object.
  21. * This method is called only by subclasses.
  22. */
  23. protected UserException() {
  24. super();
  25. }
  26. /**
  27. * Constructs a <code>UserException</code> object with a
  28. * detail message. This method is called only by subclasses.
  29. *
  30. * @param reason a <code>String</code> object giving the reason for this
  31. * exception
  32. */
  33. protected UserException(String reason) {
  34. super(reason);
  35. }
  36. }