SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class SmartFrogDeploymentException

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.SmartFrogDeploymentException
All Implemented Interfaces:
java.io.Serializable

public class SmartFrogDeploymentException
extends SmartFrogRuntimeException
implements java.io.Serializable

A SmartFrogDeploymentException is thrown if the attempt at creating the SmartFrog tree from a description fails.

See Also:
Serialized Form

Field Summary
static java.lang.String COMPONENT_DESCRIPTION
          String name for the deployed component description.
static java.lang.String DEPLOY_CONTEXT
          String name for the context in which component is deployed.
static java.lang.String OBJECT_NAME
          String name for object name.
 
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
SmartFrogDeploymentException(Reference ref, Reference source, java.lang.Object name, ComponentDescription deployedCompDesc, Context deployedContext, java.lang.String message, java.lang.Throwable cause, java.lang.Object data)
          Constructs a deployment exception.
SmartFrogDeploymentException(java.lang.String message)
          Constructs a SmartFrogDeploymentException with specified message.
SmartFrogDeploymentException(java.lang.String message, Prim sfObject)
          Constructs a SmartFrogDeploymentException with specified message.
SmartFrogDeploymentException(java.lang.String message, Prim sfObject, Context deployContext)
          Constructs a SmartFrogDeploymentException with specified message.
SmartFrogDeploymentException(java.lang.String message, java.lang.Throwable cause)
          Constructs a SmartFrogDeploymentException with specified message and cause.
SmartFrogDeploymentException(java.lang.String message, java.lang.Throwable cause, Prim sfObject, Context deployContext)
          Constructs a SmartFrogDeploymentException with specified message and cause.
SmartFrogDeploymentException(java.lang.Throwable cause)
          Constructs a SmartFrogDeploymentException with specified cause.
SmartFrogDeploymentException(java.lang.Throwable cause, Prim sfObject)
          Constructs a SmartFrogDeploymentException with specified cause.
 
Method Summary
static SmartFrogException forward(java.lang.String message, java.lang.Throwable thr)
          To forward SmartFrogDeploymentException exceptions instead of chain them.
static SmartFrogException forward(java.lang.Throwable thr)
          To forward SmartFrog exceptions instead of chain them.
 java.lang.String getMessage()
          Returns the message.
 void init(Prim sfObject)
          Initializes the exception context with component details.
 java.lang.String toString(java.lang.String nm)
          Returns a string representation of the deployment exception.
 
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, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPONENT_DESCRIPTION

public static final java.lang.String COMPONENT_DESCRIPTION
String name for the deployed component description.

See Also:
Constant Field Values

DEPLOY_CONTEXT

public static final java.lang.String DEPLOY_CONTEXT
String name for the context in which component is deployed.

See Also:
Constant Field Values

OBJECT_NAME

public static final java.lang.String OBJECT_NAME
String name for object name.

See Also:
Constant Field Values
Constructor Detail

SmartFrogDeploymentException

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

Parameters:
message - exception message

SmartFrogDeploymentException

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

Parameters:
cause - exception causing this exception

SmartFrogDeploymentException

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

SmartFrogDeploymentException

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

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

SmartFrogDeploymentException

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

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

SmartFrogDeploymentException

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

Parameters:
message - message
deployContext - The context in which a component is deployed
sfObject - The Component that has encountered the exception

SmartFrogDeploymentException

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

Parameters:
message - message
cause - The cause for exception
sfObject - The Component that has encountered the exception
deployContext - to be merged with the deployed component description

SmartFrogDeploymentException

public SmartFrogDeploymentException(Reference ref,
                                    Reference source,
                                    java.lang.Object name,
                                    ComponentDescription deployedCompDesc,
                                    Context deployedContext,
                                    java.lang.String message,
                                    java.lang.Throwable cause,
                                    java.lang.Object data)
Constructs a deployment exception.

Parameters:
ref - reference causing the deployment exceptioh
source - source that raised the exception
name - component failed to deploy
deployedCompDesc - compoent description failed to deploy
deployedContext - to be merged with the deployed component description
message - message for exception
cause - cause for exception
data - additional data for exception
Method Detail

init

public void init(Prim sfObject)
Initializes the exception context with component details.

Overrides:
init in class SmartFrogRuntimeException
Parameters:
sfObject - The Component that has encountered the exception

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 SmartFrogDeploymentException

forward

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

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

getMessage

public java.lang.String getMessage()
Returns the message.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the message value

toString

public java.lang.String toString(java.lang.String nm)
Returns a string representation of the deployment exception.

Overrides:
toString in class SmartFrogRuntimeException
Parameters:
nm - Message separator (ex. "\n");
Returns:
reason source and ref of exception

SmartFrog CORE 3.10.000

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