Oracle Application Server Web Clipping API Reference
10g (9.0.4)

B10912-01

oracle.webclipping.bean
Class WebClippingException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--oracle.webclipping.bean.WebClippingException
All Implemented Interfaces:
java.io.Serializable

public class WebClippingException
extends java.lang.Exception

This Exception class is used to represent all possible errors that can result from an execution of a Web Clipping.

See Also:
Serialized Form

Method Summary
 java.lang.String getErrorCode()
          The error code that may hint at the cause of the exception.
 java.lang.Exception getInternalException()
          Returns the nested Exception.
 java.lang.String getLocalizedMessage()
          Gets the localized error message based on the current default Locale.
 java.lang.String getLocalizedMessage(java.util.Locale locale)
          Get the message localized by the passed in Locale.
 java.lang.String getMessage()
          Gets the localized error message based on the current default Locale.
 void printStackTrace()
          Need to override this because of the nested exception
 void printStackTrace(java.io.PrintStream s)
          Need to override this because of the nested exception
 void printStackTrace(java.io.PrintWriter pw)
          Prints the stack trace given a PrintWriter.

 

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

 

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

 

Method Detail

getInternalException

public java.lang.Exception getInternalException()
Returns the nested Exception.

printStackTrace

public void printStackTrace()
Need to override this because of the nested exception
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Need to override this because of the nested exception
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints the stack trace given a PrintWriter. This is the overridden method that calls the super's printStackTrace after which prints the stack trace of the internal Exception. The other methods defer to call this for the same effect.
Overrides:
printStackTrace in class java.lang.Throwable

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Gets the localized error message based on the current default Locale.
Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
the error message localized by the default system locale.

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale)
Get the message localized by the passed in Locale.
Parameters:
locale - The locale for which the message is desired.
Returns:
the error message localized by the locale passed in.

getMessage

public java.lang.String getMessage()
Gets the localized error message based on the current default Locale. This method returns the same thing as getLocalizedMessage()
Overrides:
getMessage in class java.lang.Throwable
Returns:
the error message localized by the default system locale.

getErrorCode

public java.lang.String getErrorCode()
The error code that may hint at the cause of the exception.
Returns:
the error code as it is documented in WebClippingExceptionConstants.
See Also:
WebClippingExceptionConstants

Oracle Application Server Web Clipping API Reference
10g (9.0.4)

B10912-01

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