SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class SmartFrogInitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.smartfrog.sfcore.common.SmartFrogException
              extended by org.smartfrog.sfcore.common.SmartFrogInitException
All Implemented Interfaces:
java.io.Serializable

public class SmartFrogInitException
extends SmartFrogException
implements java.io.Serializable

A SmartFrogInitException is thrown if smartfrog initialization encounters errors.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.smartfrog.sfcore.common.SmartFrogException
CONTEXT, cxt, DATA, EXCEPTION, PRIM_COMPLETE_NAME, PRIM_CONTEXT
 
Constructor Summary
SmartFrogInitException(java.lang.String message)
          Constructs a SmartFrogInitException with specified message.
SmartFrogInitException(java.lang.String message, Prim sfObject)
          Constructs a SmartFrogInitException with specified message.
SmartFrogInitException(java.lang.String message, java.lang.Throwable cause)
          Constructs a SmartFrogInitException with specified message and cause.
SmartFrogInitException(java.lang.String message, java.lang.Throwable cause, Prim sfObject)
          Constructs a SmartFrogInitException with specified message and cause.
SmartFrogInitException(java.lang.Throwable cause)
          Constructs a SmartFrogInitException with specified cause.
SmartFrogInitException(java.lang.Throwable cause, Prim sfObject)
          Constructs a SmartFrogInitException with specified cause.
 
Method Summary
static SmartFrogException forward(java.lang.String message, java.lang.Throwable thr)
          To forward SmartFrogInitException exceptions instead of chain them.
static SmartFrogException forward(java.lang.Throwable thr)
          To forward SmartFrog exceptions instead of chain them.
 
Methods inherited from class org.smartfrog.sfcore.common.SmartFrogException
add, contains, containsKey, get, getCauseMessage, getContext, init, put, put, serializableContext, setContext, shortClassName, toString, toString, toStringAll, toStringAll
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmartFrogInitException

public SmartFrogInitException(java.lang.String message)
Constructs a SmartFrogInitException with specified message.

Parameters:
message - exception message

SmartFrogInitException

public SmartFrogInitException(java.lang.Throwable cause)
Constructs a SmartFrogInitException with specified cause.

Parameters:
cause - exception causing this exception

SmartFrogInitException

public SmartFrogInitException(java.lang.Throwable cause,
                              Prim sfObject)
Constructs a SmartFrogInitException with specified cause. Also initializes the exception context with component details.

Parameters:
cause - exception causing this exception
sfObject - The Component that has encountered the exception

SmartFrogInitException

public SmartFrogInitException(java.lang.String message,
                              java.lang.Throwable cause)
Constructs a SmartFrogInitException with specified message and cause.

Parameters:
message - exception message
cause - exception causing this exception

SmartFrogInitException

public SmartFrogInitException(java.lang.String message,
                              Prim sfObject)
Constructs a SmartFrogInitException with specified message. Also initializes the exception context with component details.

Parameters:
message - message
sfObject - The Component that has encountered the exception

SmartFrogInitException

public SmartFrogInitException(java.lang.String message,
                              java.lang.Throwable cause,
                              Prim sfObject)
Constructs a SmartFrogInitException with specified message and cause. Also initializes the exception context with component details.

Parameters:
message - message
cause - exception causing this exception
sfObject - The Component that has encountered the exception
Method Detail

forward

public static SmartFrogException forward(java.lang.Throwable thr)
To forward SmartFrog exceptions instead of chain them.

Parameters:
thr - throwable object to be forwarded
Returns:
Throwable that is a SmartFrogException

forward

public static SmartFrogException forward(java.lang.String message,
                                         java.lang.Throwable thr)
To forward SmartFrogInitException exceptions instead of chain them. If thr is an instance of SmartFrogInitException then the exception is returned without any modification, if not a new SmartFrogInitException is created with message as a paramenter

Parameters:
message - String message
thr - throwable object to be forwarded
Returns:
Throwable that is a SmartFrogInitException

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP