|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.ftlabs.fisa.calc.CalculationException
public class CalculationException
The root Exception for all calculation exceptions.
| Field Summary | |
|---|---|
protected int |
errorCode
|
| Constructor Summary | |
|---|---|
CalculationException(int errorCode)
Creates a new instance of CalculationException with the specified errorCode. |
|
CalculationException(int errorCode,
java.lang.String message)
Constructs an instance of CalculationException with the specified errorCode and detail message. |
|
CalculationException(int errorCode,
java.lang.String message,
java.lang.Throwable cause)
Constructs an instance of CalculationException with the
specified errorCode, detail message, and cause. |
|
CalculationException(java.lang.String message,
java.lang.Throwable cause)
Constructs an instance of CalculationException with the
specified detail message and cause. |
|
| Method Summary | |
|---|---|
static CalculationException |
create(java.lang.String name)
Create a new CalculationException as defined inside errorcodes.properties for the provided name. |
static CalculationException |
create(java.lang.String name,
java.lang.String message)
Create a new CalculationException as defined inside errorcodes.properties for the provided name. |
int |
getErrorCode()
Get the errorCode for this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int errorCode
| Constructor Detail |
|---|
public CalculationException(int errorCode)
errorCode - The error code.
public CalculationException(int errorCode,
java.lang.String message)
errorCode - The error code.message - the detail message.
public CalculationException(java.lang.String message,
java.lang.Throwable cause)
CalculationException with the
specified detail message and cause.
message - the detail message.cause - the cause.
public CalculationException(int errorCode,
java.lang.String message,
java.lang.Throwable cause)
CalculationException with the
specified errorCode, detail message, and cause.
errorCode - the errorCode.message - the detail message.cause - the cause.| Method Detail |
|---|
public static CalculationException create(java.lang.String name)
name - The name of a CalculationException as defined in
errorcodes.properties.
public static CalculationException create(java.lang.String name,
java.lang.String message)
name - The name of a CalculationException as defined in
errorcodes.properties.message - A message to be appended to the predefined message.
public int getErrorCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||