|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
edu.uoc.pfc.j2ee.jalonsod.mtp.MTPException
public class MTPException
File: MTPException.java Created: 2012-04-28 Encapsulates errors in the framework.
Field Summary | |
---|---|
(package private) int |
errorCode
The stage where the request has failed. |
static int |
MTP_EXCEPTION_MODEL_MAPPER
The request has thrown the exception during the modelMapper stage of the request. |
static int |
MTP_EXCEPTION_MODEL_RUN
The request has thrown the exception during the modelRun stage of the request. |
static int |
MTP_EXCEPTION_NOERROR
The request has no error. |
static int |
MTP_EXCEPTION_REQUEST_DATA
The request has thrown the exception creating the requestData object. |
static int |
MTP_EXCEPTION_SECURITY_CHECK
The request has thrown the exception during the AccessControl stage of the request. |
static int |
MTP_EXCEPTION_VALIDATION
The request has thrown the exception during the validator stage of the request. |
static int |
MTP_EXCEPTION_VIEW_DISPATCHER
The request has thrown the exception during the viewRun stage of the request. |
static int |
MTP_EXCEPTION_VIEW_MAPPER
The request has thrown the exception during the viewMapper stage of the request. |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
MTPException(java.lang.String msg)
|
|
MTPException(java.lang.String msg,
int errorCode)
|
|
MTPException(java.lang.String msg,
java.lang.Throwable t)
|
|
MTPException(java.lang.String msg,
java.lang.Throwable t,
int errorCode)
|
Method Summary | |
---|---|
int |
getErrorCode()
|
void |
setErrorCode(int errorCode)
|
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 |
---|
private static final long serialVersionUID
public static final int MTP_EXCEPTION_NOERROR
public static final int MTP_EXCEPTION_REQUEST_DATA
requestData
object.
public static final int MTP_EXCEPTION_MODEL_MAPPER
modelMapper
stage of the request.
public static final int MTP_EXCEPTION_SECURITY_CHECK
AccessControl
stage of the request.
public static final int MTP_EXCEPTION_VALIDATION
validator
stage of the request.
public static final int MTP_EXCEPTION_MODEL_RUN
modelRun
stage of the request.
public static final int MTP_EXCEPTION_VIEW_MAPPER
viewMapper
stage of the request.
public static final int MTP_EXCEPTION_VIEW_DISPATCHER
viewRun
stage of the request.
int errorCode
Constructor Detail |
---|
public MTPException(java.lang.String msg, java.lang.Throwable t, int errorCode)
public MTPException(java.lang.String msg, int errorCode)
public MTPException(java.lang.String msg, java.lang.Throwable t)
public MTPException(java.lang.String msg)
Method Detail |
---|
public int getErrorCode()
public void setErrorCode(int errorCode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |