net.sf.blunder.model
Class ExceptionRelation

java.lang.Object
  extended by net.sf.blunder.model.ExceptionRelation
All Implemented Interfaces:
Serializable, Cloneable

public class ExceptionRelation
extends Object
implements Cloneable, Serializable

The model for all the data of an error context.
This class is for internal use of Blunder.

Author:
Ambrosi Lucas
See Also:
Serialized Form

Field Summary
static String BUSINESS_ERROR
          A Business error type.
static String CLIENT_ERROR
          A Client error type.
static long serialVersionUID
           
static String SERVER_ERROR
          A Server error type.
static String UNDEFINED_ERROR
          Undefined error type.
static String USER_ERROR
          A User error type.
 
Constructor Summary
ExceptionRelation()
           
 
Method Summary
 ExceptionRelation clone()
           
 boolean equals(Object other)
           
 String getBusinessExceptionClassname()
           
 String getConditions()
           
 String getDebugStackTrace()
           
 String getFaultCode()
           
 String getFaultString()
           
 Long getId()
           
 String getLeafExceptionClassname()
           
 String getMatchAtRuntime()
          Deprecated. 
 String getPossibleSolutionsList()
           
 String getRootExceptionClassname()
           
 int hashCode()
           
 boolean isRuntimeMatch()
           
 void setBusinessExceptionClassname(String s)
          Sets the Business exception class name associated with this ExceptionRelation.
 void setConditions(String s)
          Sets the conditions expression that any context should apply for resolving with this particular ExceptionRelation.
 void setDebugStackTrace(String s)
          Sets the debug stacktrace for this ExceptionRelation.
 void setFaultCode(String s)
          Sets the fault code associated with this ExceptionRelation.
 void setFaultString(String s)
          Sets the fault string expression associated with this ExceptionRelation.
 void setId(Long l)
          Sets the ExceptionRelation Id.
 void setLeafExceptionClassname(String s)
          Sets the Leaf exception class name associated with this ExceptionRelation.
 void setMatchAtRuntime(String s)
          Deprecated. 
 void setPossibleSolutionsList(String s)
          Sets the possible solutions list expression associated with this ExceptionRelation.
 void setRootExceptionClassname(String s)
          Sets the Root exception class name associated with this ExceptionRelation.
 void setRuntimeMatch(boolean b)
          Sets if this ExceptionRelation should match at runtime.
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

UNDEFINED_ERROR

public static String UNDEFINED_ERROR
Undefined error type.


SERVER_ERROR

public static String SERVER_ERROR
A Server error type.


BUSINESS_ERROR

public static String BUSINESS_ERROR
A Business error type.


CLIENT_ERROR

public static String CLIENT_ERROR
A Client error type.


USER_ERROR

public static String USER_ERROR
A User error type.

Constructor Detail

ExceptionRelation

public ExceptionRelation()
Method Detail

getId

public Long getId()
Returns:
The ExceptionRelation Id.

setId

public void setId(Long l)
Sets the ExceptionRelation Id.


getConditions

public String getConditions()
Returns:
the conditions expression that any context should apply for resolving with this particular ExceptionRelation.

setConditions

public void setConditions(String s)
Sets the conditions expression that any context should apply for resolving with this particular ExceptionRelation.


getFaultCode

public String getFaultCode()
Returns:
the fault code associated with this ExceptionRelation.

setFaultCode

public void setFaultCode(String s)
Sets the fault code associated with this ExceptionRelation.


getFaultString

public String getFaultString()
Returns:
the fault string expression associated with this ExceptionRelation.

setFaultString

public void setFaultString(String s)
Sets the fault string expression associated with this ExceptionRelation.


getBusinessExceptionClassname

public String getBusinessExceptionClassname()
Returns:
the Business exception class name associated with this ExceptionRelation.

setBusinessExceptionClassname

public void setBusinessExceptionClassname(String s)
Sets the Business exception class name associated with this ExceptionRelation.


getLeafExceptionClassname

public String getLeafExceptionClassname()
Returns:
the Leaf exception class name associated with this ExceptionRelation.

setLeafExceptionClassname

public void setLeafExceptionClassname(String s)
Sets the Leaf exception class name associated with this ExceptionRelation.


getPossibleSolutionsList

public String getPossibleSolutionsList()
Returns:
the possible solutions list expression associated with this ExceptionRelation.

setPossibleSolutionsList

public void setPossibleSolutionsList(String s)
Sets the possible solutions list expression associated with this ExceptionRelation.


getRootExceptionClassname

public String getRootExceptionClassname()
Returns:
the Root exception class name associated with this ExceptionRelation.

setRootExceptionClassname

public void setRootExceptionClassname(String s)
Sets the Root exception class name associated with this ExceptionRelation.


getMatchAtRuntime

@Deprecated
public String getMatchAtRuntime()
Deprecated. 

Just for mapping uniformely across diferent dbms.

See Also:
ExceptionRelation.isRuntimeMatch()

setMatchAtRuntime

@Deprecated
public void setMatchAtRuntime(String s)
Deprecated. 

Just for mapping uniformely across diferent dbms.

See Also:
#setRuntimeMatch( boolean )

setRuntimeMatch

public void setRuntimeMatch(boolean b)
Sets if this ExceptionRelation should match at runtime.


isRuntimeMatch

public boolean isRuntimeMatch()
Returns:
true if this ExceptionRelation should match at runtime.

getDebugStackTrace

public String getDebugStackTrace()
Returns:
the debug stacktrace for this ExceptionRelation.

setDebugStackTrace

public void setDebugStackTrace(String s)
Sets the debug stacktrace for this ExceptionRelation.


toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

clone

public ExceptionRelation clone()
                        throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2009 Blunder. All Rights Reserved.