SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class SmartFrogParseException

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

public class SmartFrogParseException
extends SmartFrogCompilationException
implements java.io.Serializable

SmartFrogCompilationException is thrown when an irrecoverable error occurs during the compilation of smartfrog component's description.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.smartfrog.sfcore.common.SmartFrogCompilationException
SOURCE
 
Fields inherited from class org.smartfrog.sfcore.common.SmartFrogException
CONTEXT, cxt, DATA, EXCEPTION, PRIM_COMPLETE_NAME, PRIM_CONTEXT
 
Constructor Summary
SmartFrogParseException()
          Constructs a SmartFrogParseException with no message.
SmartFrogParseException(java.lang.String message)
          Constructs a SmartFrogParseException with message.
SmartFrogParseException(java.lang.String message, Prim sfObject)
          Constructs a SmartFrogParseException with message.
SmartFrogParseException(java.lang.String message, java.lang.Throwable cause)
          Constructs a SmartFrogParseException with message and cause.
SmartFrogParseException(java.lang.String message, java.lang.Throwable cause, Prim sfObject)
          Constructs a SmartFrogParseException with message and cause.
SmartFrogParseException(java.lang.Throwable cause)
          Constructs a SmartFrogParseException with cause.
SmartFrogParseException(java.lang.Throwable cause, Prim sfObject)
          Constructs a SmartFrogParseException with cause.
 
Method Summary
static SmartFrogException forward(java.lang.String message, java.lang.Throwable thr)
          To forward SmartFrogParseException 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.SmartFrogCompilationException
toString
 
Methods inherited from class org.smartfrog.sfcore.common.SmartFrogException
add, contains, containsKey, get, getCauseMessage, getContext, init, 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

SmartFrogParseException

public SmartFrogParseException()
Constructs a SmartFrogParseException with no message.


SmartFrogParseException

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

Parameters:
message - exception message

SmartFrogParseException

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

Parameters:
cause - exception causing this exception

SmartFrogParseException

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

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

SmartFrogParseException

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

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

SmartFrogParseException

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

Parameters:
message - message
sfObject - component that encountered exception

SmartFrogParseException

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

forward

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

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

SmartFrog CORE 3.10.000

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