SmartFrog 3.10.000

org.smartfrog.sfcore.languages.sf
Class SmartFrogCompileResolutionException

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

public class SmartFrogCompileResolutionException
extends SmartFrogCompilationException

A SmartFrogCompileResolutionException is thrown when an irrecoverable resolution error occurs while compilation. A resolution exception contains a reason code and a name (reference) of the component where the resolution failed. Possible failure conditions and reason codes are given in the table below. Placement resolution failed placeResolution Type resolution failed typeResolution Deployment resolution failed deployResolution

See Also:
Serialized Form

Field Summary
static java.lang.String FUNCTION_PHASE
          String name for function resolution phase.
static java.lang.String LINK_PHASE
          String name for link resolution phase.
static java.lang.String PLACE_PHASE
          String name for place resolution phase.
static java.lang.String PRINT_PHASE
          String name for print resolution phase.
static java.lang.String RESOLUTION_PHASE
          String name for resolution phase.
static java.lang.String SFCONFIG_PHASE
          String name for sfconfig resolution phase.
static java.lang.String TYPE_PHASE
          String name for type resolution phase.
 
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
SmartFrogCompileResolutionException(java.lang.String message)
          Constructs a SmartFrogCompileResolutionException with specified message.
SmartFrogCompileResolutionException(java.lang.String message, java.lang.Throwable cause)
          Constructs a SmartFrogCompileResolutionException with specified message and cause.
SmartFrogCompileResolutionException(java.lang.String message, java.lang.Throwable cause, Reference source, java.lang.String resolutionPhase, java.lang.Object data)
          Constructs a resolution exception with additional data.
SmartFrogCompileResolutionException(java.lang.String message, java.lang.Throwable cause, java.lang.String resolutionPhase)
          Constructs a SmartFrogCompileResolutionException with specified message and cause.
SmartFrogCompileResolutionException(java.lang.Throwable cause)
          Constructs a SmartFrogCompileResolutionException with specified cause.
SmartFrogCompileResolutionException(java.lang.Throwable cause, java.lang.String resolutionPhase)
          Constructs a SmartFrogCompileResolutionException with specified cause.
 
Method Summary
static SmartFrogException forward(java.lang.Throwable thr)
          To forward SmartFrog exceptions instead of chain them.
static SmartFrogException forward(java.lang.Throwable thr, java.lang.String resolutionPhase)
          To forward SmartFrog exceptions instead of chain them.
static SmartFrogCompileResolutionException functionResolution(java.lang.String reason, Reference source, java.lang.Object data, java.lang.Throwable cause)
          Creates a function resolution exception.
static SmartFrogCompileResolutionException linkResolution(java.lang.String reason, Reference source, java.lang.Object data, java.lang.Throwable cause)
          Creates a link resolution exception.
static SmartFrogCompileResolutionException placeResolution(java.lang.String reason, Reference source, java.lang.Object data, java.lang.Throwable cause)
          Creates a placement resolution exception.
static SmartFrogCompileResolutionException printResolution(java.lang.String reason, Reference source, java.lang.Object data, java.lang.Throwable cause)
          Creates a function resolution exception.
static SmartFrogCompileResolutionException sfConfigResolution(java.lang.String reason, Reference source, java.lang.Object data, java.lang.Throwable cause)
          Creates a function resolution exception.
 java.lang.String toString(java.lang.String nm)
          Returns a string representation of the compilation exception.
static SmartFrogCompileResolutionException typeResolution(java.lang.String reason, Reference source, java.lang.Object data, java.lang.Throwable cause)
          Creates a type resolution 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

RESOLUTION_PHASE

public static final java.lang.String RESOLUTION_PHASE
String name for resolution phase.

See Also:
Constant Field Values

TYPE_PHASE

public static final java.lang.String TYPE_PHASE
String name for type resolution phase.

See Also:
Constant Field Values

PLACE_PHASE

public static final java.lang.String PLACE_PHASE
String name for place resolution phase.

See Also:
Constant Field Values

SFCONFIG_PHASE

public static final java.lang.String SFCONFIG_PHASE
String name for sfconfig resolution phase.

See Also:
Constant Field Values

PRINT_PHASE

public static final java.lang.String PRINT_PHASE
String name for print resolution phase.

See Also:
Constant Field Values

LINK_PHASE

public static final java.lang.String LINK_PHASE
String name for link resolution phase.

See Also:
Constant Field Values

FUNCTION_PHASE

public static final java.lang.String FUNCTION_PHASE
String name for function resolution phase.

See Also:
Constant Field Values
Constructor Detail

SmartFrogCompileResolutionException

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

Parameters:
message - exception message

SmartFrogCompileResolutionException

public SmartFrogCompileResolutionException(java.lang.String message,
                                           java.lang.Throwable cause,
                                           Reference source,
                                           java.lang.String resolutionPhase,
                                           java.lang.Object data)
Constructs a resolution exception with additional data.

Parameters:
message - exception message
cause - exception causing this exception
source - source that raised the exception
resolutionPhase - Resolution phase that caused the exception
data - additional data for exception

SmartFrogCompileResolutionException

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

Parameters:
cause - exception causing this exception

SmartFrogCompileResolutionException

public SmartFrogCompileResolutionException(java.lang.Throwable cause,
                                           java.lang.String resolutionPhase)
Constructs a SmartFrogCompileResolutionException with specified cause. Also initializes the exception context with component details.

Parameters:
cause - exception causing this exception
resolutionPhase - Resolution phase that caused the exception

SmartFrogCompileResolutionException

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

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

SmartFrogCompileResolutionException

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

Parameters:
message - exception message
cause - exception causing this exception
resolutionPhase - Resolution phase that caused the exception
Method Detail

placeResolution

public static SmartFrogCompileResolutionException placeResolution(java.lang.String reason,
                                                                  Reference source,
                                                                  java.lang.Object data,
                                                                  java.lang.Throwable cause)
Creates a placement resolution exception. The data field generally is a vector containing the unresolved references.

Parameters:
reason - message exception
source - component causing the exception
data - vector of unresolved placements
cause - exception causing this exception
Returns:
SmartFrogException that is a SmartFrogCompileResolutionException

typeResolution

public static SmartFrogCompileResolutionException typeResolution(java.lang.String reason,
                                                                 Reference source,
                                                                 java.lang.Object data,
                                                                 java.lang.Throwable cause)
Creates a type resolution exception. The data field generally is a vector containing the unresolved references.

Parameters:
reason - message exception
source - component causing the exception
data - vector of unresolved placements.
cause - exception causing this exception
Returns:
SmartFrogException that is a SmartFrogCompileResolutionException

linkResolution

public static SmartFrogCompileResolutionException linkResolution(java.lang.String reason,
                                                                 Reference source,
                                                                 java.lang.Object data,
                                                                 java.lang.Throwable cause)
Creates a link resolution exception. The data field generally is a vector containing the unresolved references.

Parameters:
reason - message exception
source - component causing the exception
data - vector of unresolved placements.
cause - exception causing this exception
Returns:
SmartFrogException that is a SmartFrogCompileResolutionException

functionResolution

public static SmartFrogCompileResolutionException functionResolution(java.lang.String reason,
                                                                     Reference source,
                                                                     java.lang.Object data,
                                                                     java.lang.Throwable cause)
Creates a function resolution exception. The data field generally is a vector containing the unresolved references.

Parameters:
reason - message exception
source - component causing the exception
data - vector of unresolved placements.
cause - exception causing this exception
Returns:
SmartFrogException that is a SmartFrogCompileResolutionException

sfConfigResolution

public static SmartFrogCompileResolutionException sfConfigResolution(java.lang.String reason,
                                                                     Reference source,
                                                                     java.lang.Object data,
                                                                     java.lang.Throwable cause)
Creates a function resolution exception. The data field generally is a vector containing the unresolved references.

Parameters:
reason - message exception
source - component causing the exception
data - vector of unresolved placements.
cause - exception causing this exception
Returns:
SmartFrogException that is a SmartFrogCompileResolutionException

printResolution

public static SmartFrogCompileResolutionException printResolution(java.lang.String reason,
                                                                  Reference source,
                                                                  java.lang.Object data,
                                                                  java.lang.Throwable cause)
Creates a function resolution exception. The data field generally is a vector containing the unresolved references.

Parameters:
reason - message exception
source - component causing the exception
data - vector of unresolved placements.
cause - exception causing this exception
Returns:
SmartFrogException that is a SmartFrogCompileResolutionException

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 SmartFrogCompileResolutionException

forward

public static SmartFrogException forward(java.lang.Throwable thr,
                                         java.lang.String resolutionPhase)
To forward SmartFrog exceptions instead of chain them.

Parameters:
thr - throwable object to be forwarded
resolutionPhase - Resolution phase that caused the exception to be forwarded
Returns:
SmartFrogException that is a SmartFrogCompileResolutionException

toString

public java.lang.String toString(java.lang.String nm)
Description copied from class: SmartFrogCompilationException
Returns a string representation of the compilation exception.

Overrides:
toString in class SmartFrogCompilationException
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