Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.7.0)
E15995-06


oracle.webcenter.activitystreaming
Class ActivityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.webcenter.activitystreaming.ActivityException

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BulkActivityException

public class ActivityException
extends java.lang.Exception
See Also:
Serialized Form

Field Summary
static java.lang.String ERROR_RES_BUNDLE_NAME
           

 

Constructor Summary
ActivityException(java.lang.String resourceKey, java.lang.Object[] args, java.lang.Throwable cause)
          Construct an exception with resourceKey, optional parameters, and optional cause, defaulting the resource bundle to the activity streaming error bundle.
ActivityException(java.lang.String resBundleClassName, java.lang.String resourceKey, java.lang.Object[] args, java.lang.Throwable cause, java.lang.ClassLoader classLoader)
          Construct a exception with a complete set of parameters and explicit class loader.

 

Method Summary
 java.lang.Throwable getCause()
          Get the cause of this exception.
 java.lang.String getLocalizedMessage()
          Method to compose the localized error message.
 void printStackTrace()
          Print this exception and its backtrace to the standard error stream.

 

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

 

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

 

Field Detail

ERROR_RES_BUNDLE_NAME

public static final java.lang.String ERROR_RES_BUNDLE_NAME

Constructor Detail

ActivityException

public ActivityException(java.lang.String resourceKey,
                         java.lang.Object[] args,
                         java.lang.Throwable cause)
Construct an exception with resourceKey, optional parameters, and optional cause, defaulting the resource bundle to the activity streaming error bundle.
Parameters:
resourceKey - Key to the error message within the activity streaming error bundle
args - optional arguments formatted into the msg via MessageFormat
cause - optional cause of this exception

ActivityException

public ActivityException(java.lang.String resBundleClassName,
                         java.lang.String resourceKey,
                         java.lang.Object[] args,
                         java.lang.Throwable cause,
                         java.lang.ClassLoader classLoader)
Construct a exception with a complete set of parameters and explicit class loader. Class loader parameter may be neccesary for cases when the service Exception implemetation is loaded in one name space and the actual resource bundle is in a different name space. In such cases, get the current classloader from the calling class and pass it as argument to avoid missing resource bundle exception.
Parameters:
resBundleClassName - the fully qualified name of the resource bundle with the error string.
resourceKey - the key of the resource within the resource bundle
args - optional arguments formatted into the msg via MessageFormat
cause - optional cause of this exception
classLoader - a reference for a class loader

Method Detail

getCause

public java.lang.Throwable getCause()
Get the cause of this exception.
Overrides:
getCause in class java.lang.Throwable
Returns:
the possibly null cause

printStackTrace

public void printStackTrace()
Print this exception and its backtrace to the standard error stream. Note: it is necessary to override this method (and not just the two that follow) because the JDK implementation of Throwable.printStackTrace() calls one of its own private methods instead of printStackTrace(PrintStream stream)!
Overrides:
printStackTrace in class java.lang.Throwable

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Method to compose the localized error message.
Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
String with localized error message.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.7.0)
E15995-06


Copyright © 2009, 2013, Oracle and/or its affiliates. All rights reserved.