SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class SmartFrogCompilationException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SmartFrogCompileResolutionException, SmartFrogParseException

public class SmartFrogCompilationException
extends SmartFrogException
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
static java.lang.String SOURCE
          Attribute name in exceptioncontext: The source that was trying to resolve the reference.
 
Fields inherited from class org.smartfrog.sfcore.common.SmartFrogException
CONTEXT, cxt, DATA, EXCEPTION, PRIM_COMPLETE_NAME, PRIM_CONTEXT
 
Constructor Summary
SmartFrogCompilationException()
          Constructs a SmartFrogCompilationException with no message.
SmartFrogCompilationException(java.lang.String message)
          Constructs a SmartFrogCompilationException with message.
SmartFrogCompilationException(java.lang.String message, java.lang.Object source)
          Constructs a SmartFrogCompilationException with message.
SmartFrogCompilationException(java.lang.String message, Prim sfObject, java.lang.Object source)
          Constructs a SmartFrogCompilationException with message.
SmartFrogCompilationException(java.lang.String message, java.lang.Throwable cause)
          Constructs a SmartFrogCompilationException with message and cause.
SmartFrogCompilationException(java.lang.String message, java.lang.Throwable cause, java.lang.Object source)
          Constructs a SmartFrogCompilationException with message and cause.
SmartFrogCompilationException(java.lang.String message, java.lang.Throwable cause, Prim sfObject, java.lang.Object source)
          Constructs a SmartFrogCompilationException with message and cause.
SmartFrogCompilationException(java.lang.Throwable cause)
          Constructs a SmartFrogCompilationException with cause.
SmartFrogCompilationException(java.lang.Throwable cause, java.lang.Object source)
          Constructs a SmartFrogCompilationException with cause.
SmartFrogCompilationException(java.lang.Throwable cause, Prim sfObject, java.lang.Object source)
          Constructs a SmartFrogCompilationException with cause.
 
Method Summary
static SmartFrogException forward(java.lang.Throwable thr)
          To forward SmartFrog exceptions instead of chaining them.
 java.lang.String toString(java.lang.String nm)
          Returns a string representation of the compilation exception.
 
Methods inherited from class org.smartfrog.sfcore.common.SmartFrogException
add, contains, containsKey, forward, 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
 

Field Detail

SOURCE

public static final java.lang.String SOURCE
Attribute name in exceptioncontext: The source that was trying to resolve the reference.

See Also:
Constant Field Values
Constructor Detail

SmartFrogCompilationException

public SmartFrogCompilationException()
Constructs a SmartFrogCompilationException with no message.


SmartFrogCompilationException

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

Parameters:
message - exception message

SmartFrogCompilationException

public SmartFrogCompilationException(java.lang.String message,
                                     java.lang.Object source)
Constructs a SmartFrogCompilationException with message.

Parameters:
message - exception message
source - an Object: source of this exception

SmartFrogCompilationException

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

Parameters:
cause - exception causing this exception

SmartFrogCompilationException

public SmartFrogCompilationException(java.lang.Throwable cause,
                                     java.lang.Object source)
Constructs a SmartFrogCompilationException with cause.

Parameters:
cause - exception causing this exception
source - an Object: source of this exception

SmartFrogCompilationException

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

Parameters:
cause - exception causing this exception
sfObject - component that encountered exception
source - an Object: source of this exception

SmartFrogCompilationException

public SmartFrogCompilationException(java.lang.String message,
                                     java.lang.Throwable cause,
                                     java.lang.Object source)
Constructs a SmartFrogCompilationException with message and cause.

Parameters:
message - exception message
cause - exception causing this exception
source - an Object: source of this exception

SmartFrogCompilationException

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

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

SmartFrogCompilationException

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

Parameters:
message - message
sfObject - component that encountered exception
source - an Object: source of this exception

SmartFrogCompilationException

public SmartFrogCompilationException(java.lang.String message,
                                     java.lang.Throwable cause,
                                     Prim sfObject,
                                     java.lang.Object source)
Constructs a SmartFrogCompilationException 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
source - an Object: source of this exception
Method Detail

forward

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

Parameters:
thr - Throwable exception to be forwarded
Returns:
SmartFrogException that is a SmartFrogCompilationException

toString

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

Overrides:
toString in class SmartFrogException
Parameters:
nm - Message separator (ex. "\n");
Returns:
string representation of the compilation exception

SmartFrog CORE 3.10.000

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