SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class SmartFrogLifecycleException

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.SmartFrogRuntimeException
                  extended by org.smartfrog.sfcore.common.SmartFrogLifecycleException
All Implemented Interfaces:
java.io.Serializable

public class SmartFrogLifecycleException
extends SmartFrogRuntimeException
implements java.io.Serializable

A SmartFrogLifecycleException is thrown if the attempt at executing one of the SmartFrog lifecycle phases fails.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.smartfrog.sfcore.common.SmartFrogRuntimeException
REFERENCE, SOURCE
 
Fields inherited from class org.smartfrog.sfcore.common.SmartFrogException
CONTEXT, cxt, DATA, EXCEPTION, PRIM_COMPLETE_NAME, PRIM_CONTEXT
 
Constructor Summary
SmartFrogLifecycleException(java.lang.String message)
          Constructs a SmartFrogLifecycleException with message.
SmartFrogLifecycleException(java.lang.String message, Prim sfObject)
          Constructs a SmartFrogLifecycleException with message.
SmartFrogLifecycleException(java.lang.String message, java.lang.Throwable cause)
          Constructs a SmartFrogLifecycleException with message and cause.
SmartFrogLifecycleException(java.lang.String message, java.lang.Throwable cause, Prim sfObject)
          Constructs a SmartFrogLifecycleException with message and cause.
SmartFrogLifecycleException(java.lang.Throwable cause)
          Constructs a SmartFrogLifecycleException with cause.
SmartFrogLifecycleException(java.lang.Throwable cause, Prim sfObject)
          Constructs a SmartFrogLifecycleException with cause.
 
Method Summary
static SmartFrogException forward(java.lang.String message, java.lang.Throwable thr)
          To forward SmartFrog exceptions instead of chain them.
static SmartFrogException forward(java.lang.String message, java.lang.Throwable thr, Prim sfObject)
          To forward SmartFrog exceptions instead of chain them.
static SmartFrogException forward(java.lang.Throwable thr)
          To forward SmartFrog exceptions instead of chain them.
static SmartFrogLifecycleException sfDeploy(java.lang.String message, java.lang.Throwable cause, Prim sfObject)
          Forwards the SmartFrog exceptions at the time of deployment.
static SmartFrogLifecycleException sfStart(java.lang.String message, java.lang.Throwable cause, Prim sfObject)
          Forwards the SmartFrog exceptions at the time of sfStart.
static SmartFrogLifecycleException sfTerminate(java.lang.String message, java.lang.Throwable cause, Prim sfObject)
          Forwards the SmartFrog exceptions at the time of termination.
static SmartFrogLifecycleException sfTerminateWith(java.lang.String message, java.lang.Throwable cause, Prim sfObject)
          Forwards the SmartFrog exceptions at the time of termination.
 
Methods inherited from class org.smartfrog.sfcore.common.SmartFrogRuntimeException
init, toString
 
Methods inherited from class org.smartfrog.sfcore.common.SmartFrogException
add, contains, containsKey, get, getCauseMessage, getContext, put, put, serializableContext, setContext, shortClassName, 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

SmartFrogLifecycleException

public SmartFrogLifecycleException(java.lang.String message)
Constructs a SmartFrogLifecycleException with message.

Parameters:
message - exception message

SmartFrogLifecycleException

public SmartFrogLifecycleException(java.lang.Throwable cause)
Constructs a SmartFrogLifecycleException with cause.

Parameters:
cause - exception causing this exception

SmartFrogLifecycleException

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

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

SmartFrogLifecycleException

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

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

SmartFrogLifecycleException

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

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

SmartFrogLifecycleException

public SmartFrogLifecycleException(java.lang.String message,
                                   java.lang.Throwable cause,
                                   Prim sfObject)
Constructs a SmartFrogLifecycleException with 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

sfDeploy

public static SmartFrogLifecycleException sfDeploy(java.lang.String message,
                                                   java.lang.Throwable cause,
                                                   Prim sfObject)
Forwards the SmartFrog exceptions at the time of deployment.

Parameters:
message - message
cause - exception causing this exception
sfObject - the component that has encountered the exception
Returns:
SmartFrogException that is a SmartFrogLifecycleException

sfStart

public static SmartFrogLifecycleException sfStart(java.lang.String message,
                                                  java.lang.Throwable cause,
                                                  Prim sfObject)
Forwards the SmartFrog exceptions at the time of sfStart.

Parameters:
message - message
cause - exception causing this exception
sfObject - the component that has encountered the exception
Returns:
SmartFrogException that is a SmartFrogLifecycleException

sfTerminate

public static SmartFrogLifecycleException sfTerminate(java.lang.String message,
                                                      java.lang.Throwable cause,
                                                      Prim sfObject)
Forwards the SmartFrog exceptions at the time of termination.

Parameters:
message - message
cause - exception causing this exception
sfObject - the component that has encountered the exception
Returns:
SmartFrogException that is a SmartFrogLifecycleException

sfTerminateWith

public static SmartFrogLifecycleException sfTerminateWith(java.lang.String message,
                                                          java.lang.Throwable cause,
                                                          Prim sfObject)
Forwards the SmartFrog exceptions at the time of termination.

Parameters:
message - message
cause - exception causing this exception
sfObject - the component that has encountered the exception
Returns:
SmartFrogException that is a SmartFrogLifecycleException

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:
SmartFrogException that is a SmartFrogLifecycleException

forward

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

Parameters:
message - String message
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,
                                         Prim sfObject)
To forward SmartFrog exceptions instead of chain them.

Parameters:
message - message
thr - throwable object to be forwarded
sfObject - the component that has encountered the exception
Returns:
SmartFrogException that is a SmartFrogLifecycleException

SmartFrog CORE 3.10.000

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