|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.openanzo.common.exceptions.AnzoException
public class AnzoException
Base exception for Anzo. Contains an major error code, a minor code, and any arguments needed to populate the exception message. The text of the message is stored in an external properties file in order to facilitate i8n.
| Method Summary | |
|---|---|
static AnzoException |
createException(org.apache.axis.AxisFault fault)
Create a new exception with an AxisFault as the cause. |
static AnzoException |
createException(int errorCode,
int errorSubCode,
java.lang.String... args)
Create a new exception with a Major and Minor code, and 0 or more string arguments to the error message. |
static AnzoException |
createException(int errorCode,
int errorSubCode,
java.lang.Throwable cause,
java.lang.String... args)
Create a new exception with a Major and Minor code, and 0 or more string argurments to the error message. |
java.lang.String[] |
getArgs()
Get the arguments to the error message |
int |
getErrorCode()
Get the major code. |
int |
getErrorSubCode()
Get the minor code. |
java.lang.String |
getMessage()
Return the error message for this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static AnzoException createException(int errorCode,
int errorSubCode,
java.lang.String... args)
errorCode - Major codeerrorSubCode - Minor codeargs - Arguments to error message
public static AnzoException createException(int errorCode,
int errorSubCode,
java.lang.Throwable cause,
java.lang.String... args)
errorCode - Major codeerrorSubCode - Minor codecause - Cause of exceptionargs - Arguments to error message
public static AnzoException createException(org.apache.axis.AxisFault fault)
fault - Cause of the exception
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic int getErrorCode()
public int getErrorSubCode()
public java.lang.String[] getArgs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||