SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class SmartFrogLivenessException

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

public class SmartFrogLivenessException
extends SmartFrogRuntimeException
implements java.io.Serializable

A SmartFrogLivenessException is thrown when a liveness test fails

See Also:
Liveness.sfPing(Object), Serialized Form

Field Summary
static java.lang.String DATA
          Attribute name for data in exceptioncontext.
static java.lang.String REFERENCE
          Attribute name for reference in exceptioncontext.
static java.lang.String SOURCE
          Attribute name for source in exceptioncontext.
 
Fields inherited from class org.smartfrog.sfcore.common.SmartFrogException
CONTEXT, cxt, EXCEPTION, PRIM_COMPLETE_NAME, PRIM_CONTEXT
 
Constructor Summary
SmartFrogLivenessException(java.lang.String message)
          Constructs a SmartFrogLivenessException with message.
SmartFrogLivenessException(java.lang.String message, Prim sfObject)
          Constructs a SmartFrogLivenessException with message.
SmartFrogLivenessException(java.lang.String message, java.lang.Throwable cause)
          Constructs a SmartFrogLivenessException with message and cause.
SmartFrogLivenessException(java.lang.String message, java.lang.Throwable cause, Prim sfObject)
          Constructs a SmartFrogLivenessException with message and cause.
SmartFrogLivenessException(java.lang.Throwable cause)
          Constructs a SmartFrogLivenessException with cause.
SmartFrogLivenessException(java.lang.Throwable cause, Prim sfObject)
          Constructs a SmartFrogLivenessException with cause.
 
Method Summary
static SmartFrogException forward(java.lang.String message, java.lang.Throwable thr)
          To forward SmartFrogLivenessException exceptions instead of chain them.
static SmartFrogException forward(java.lang.Throwable thr)
          To forward SmartFrog exceptions instead of chain them.
 void init(Prim sfObject)
          Initializes the exception context with the SmartFrog component.
 
Methods inherited from class org.smartfrog.sfcore.common.SmartFrogRuntimeException
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
 

Field Detail

REFERENCE

public static final java.lang.String REFERENCE
Attribute name for reference in exceptioncontext.

See Also:
Constant Field Values

SOURCE

public static final java.lang.String SOURCE
Attribute name for source in exceptioncontext.

See Also:
Constant Field Values

DATA

public static final java.lang.String DATA
Attribute name for data in exceptioncontext.

See Also:
Constant Field Values
Constructor Detail

SmartFrogLivenessException

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

Parameters:
message - exception message

SmartFrogLivenessException

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

Parameters:
cause - exception causing this exception

SmartFrogLivenessException

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

Parameters:
cause - exception causing this exception
sfObject - component that encountered exception

SmartFrogLivenessException

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

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

SmartFrogLivenessException

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

Parameters:
message - message
sfObject - component that encountered exception

SmartFrogLivenessException

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

Parameters:
message - message
cause - exception causing this exception
sfObject - component that encountered 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:
SmartFrogException that is a SmartFrogLivenessException

forward

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

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

init

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

Overrides:
init in class SmartFrogRuntimeException
Parameters:
sfObject - component that encountered exception

SmartFrog CORE 3.10.000

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