|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.shephertz.app42.paas.sdk.java.App42Exception
public class App42Exception
Constructor Summary | |
---|---|
App42Exception()
|
|
App42Exception(int httpErrorCode,
int appErrorCode)
Constructor which takes httpErrorCode and the appErrorCode |
|
App42Exception(java.lang.String detailMessage)
|
|
App42Exception(java.lang.String detailMessage,
int httpErrorCode,
int appErrorCode)
Constructor which takes message, httpErrorCode and the appErrorCode |
|
App42Exception(java.lang.String detailMessage,
java.lang.Throwable throwable)
|
|
App42Exception(java.lang.Throwable throwable)
|
Method Summary | |
---|---|
int |
getAppErrorCode()
Gets the AppErrorCode for the Exception. |
int |
getHttpErrorCode()
Gets the HttpErrorCode for the Exception e.g. |
void |
setAppErrorCode(int appErrorCode)
Sets the AppErrorCode for the Exception |
void |
setHttpErrorCode(int httpErrorCode)
Sets the HttpErrorCode for the 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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public App42Exception()
public App42Exception(java.lang.String detailMessage)
detailMessage
- public App42Exception(java.lang.Throwable throwable)
throwable
- public App42Exception(java.lang.String detailMessage, java.lang.Throwable throwable)
detailMessage
- throwable
- public App42Exception(java.lang.String detailMessage, int httpErrorCode, int appErrorCode)
detailMessage
- httpErrorCode
- appErrorCode
- public App42Exception(int httpErrorCode, int appErrorCode)
httpErrorCode
- appErrorCode
- Method Detail |
---|
public void setHttpErrorCode(int httpErrorCode)
httpErrorCode
- The http error code e.g. 404, 500, 401 etc.public int getHttpErrorCode()
public void setAppErrorCode(int appErrorCode)
appErrorCode
- App error codes correspond to the error which specific to the service.
This error code can help App developers to take decisions and take action
when a particular error occurs for a servicepublic int getAppErrorCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |