Oracle Application Server Web Services UDDI Client API Reference
10g (9.0.4)

Part No. B10396-01

oracle.uddi
Class UddiException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--oracle.uddi.UddiException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MarshallException, RandomAccessOnlyException, SequentialAccessOnlyException, UddiClientException, UnmarshallException

public class UddiException
extends java.lang.Exception

This class is the superclass of all Uddi exceptions, including both client and server exceptions. It implements commonly-needed functionality like exception wrapping and handles the localization and parameterization of exception messages by delegating those responsibilities to a contained LocalizedMessage object (if present). All Uddi exceptions should extend directly or indirectly from this class.

See Also:
Serialized Form

Constructor Summary
UddiException()
          This default constructor should ONLY be used by the special case UddiClientException constructor which takes a DOM element parameter.
UddiException(LocalizedMessage localizedMessage)
          Constructor with localizable message.
UddiException(LocalizedMessage localizedMessage, java.lang.Throwable wrappedThrowable)
          Constructor with localizable message and wrapped throwable.
UddiException(java.lang.String szMessage)
          Standard non-localized message constructor.
UddiException(java.lang.String szMessage, java.lang.Throwable wrappedThrowable)
          Standard non-localized message constructor with wrapped throwable.

 

Method Summary
 java.lang.String getErrorCode()
          Returns the error code number as a String.
 java.lang.String getLocalizedMessage()
          If this exception was created with a localized message, returns the localized String from that object.
 java.lang.String getMessage()
          If this exception was not created with a localized message, this method returns the simple String message which was supplied.
 java.lang.Throwable getWrappedThrowable()
          Returns the wrapped throwable object, or null if none exists.
 void printStackTrace()
          Prints stack trace (including any wrapped exceptions) to standard error.
 void printStackTrace(java.io.PrintStream ps)
          Prints stack trace (including any wrapped exceptions) to specified PrintStream.
 void printStackTrace(java.io.PrintWriter pw)
          Prints stack trace (including any wrapped exceptions) to specified PrintWriter.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

UddiException

public UddiException()
This default constructor should ONLY be used by the special case UddiClientException constructor which takes a DOM element parameter.

UddiException

public UddiException(java.lang.String szMessage)
Standard non-localized message constructor.

UddiException

public UddiException(java.lang.String szMessage,
                     java.lang.Throwable wrappedThrowable)
Standard non-localized message constructor with wrapped throwable.

UddiException

public UddiException(LocalizedMessage localizedMessage)
Constructor with localizable message.

UddiException

public UddiException(LocalizedMessage localizedMessage,
                     java.lang.Throwable wrappedThrowable)
Constructor with localizable message and wrapped throwable.
Method Detail

getWrappedThrowable

public java.lang.Throwable getWrappedThrowable()
Returns the wrapped throwable object, or null if none exists.

getMessage

public java.lang.String getMessage()
If this exception was not created with a localized message, this method returns the simple String message which was supplied. If this exception was created with a localized message, this method returns the localized message for the Locale.US locale.
Overrides:
getMessage in class java.lang.Throwable

getLocalizedMessage

public java.lang.String getLocalizedMessage()
If this exception was created with a localized message, returns the localized String from that object. If this exception was not created with a localized message, returns the simple String message which was supplied at creation time.
Overrides:
getLocalizedMessage in class java.lang.Throwable

getErrorCode

public java.lang.String getErrorCode()
Returns the error code number as a String. This is an internal error code key which maps to a specific error message; it is not a UDDI-defined error code. If no localized message exists, returns null.

printStackTrace

public void printStackTrace()
Prints stack trace (including any wrapped exceptions) to standard error.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints stack trace (including any wrapped exceptions) to specified PrintStream.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints stack trace (including any wrapped exceptions) to specified PrintWriter.
Overrides:
printStackTrace in class java.lang.Throwable

Oracle Application Server Web Services UDDI Client API Reference
10g (9.0.4)

Part No. B10396-01

Copyright © 2001, 2003, Oracle. All rights reserved.