Package org.wso2.carbon.apimgt.api
Class ErrorItem
- java.lang.Object
-
- org.wso2.carbon.apimgt.api.ErrorItem
-
- All Implemented Interfaces:
ErrorHandler
public class ErrorItem extends Object implements ErrorHandler
ErrorHandler implementation for dynamic error items
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getErrorCode()
Get error code that defined in the enumString
getErrorDescription()
Get error description that defined in the enumString
getErrorMessage()
Get error message that defined in the enumint
getHttpStatusCode()
Get Http status code that defined in the enumboolean
printStackTrace()
Return true if stack trace to print;void
setDescription(String description)
void
setErrorCode(long errorCode)
void
setMessage(String message)
void
setStatusCode(int statusCode)
-
-
-
Method Detail
-
setErrorCode
public void setErrorCode(long errorCode)
-
setDescription
public void setDescription(String description)
-
setMessage
public void setMessage(String message)
-
setStatusCode
public void setStatusCode(int statusCode)
-
getErrorCode
public long getErrorCode()
Description copied from interface:ErrorHandler
Get error code that defined in the enum- Specified by:
getErrorCode
in interfaceErrorHandler
- Returns:
- error code
-
getErrorMessage
public String getErrorMessage()
Description copied from interface:ErrorHandler
Get error message that defined in the enum- Specified by:
getErrorMessage
in interfaceErrorHandler
- Returns:
- error message
-
getErrorDescription
public String getErrorDescription()
Description copied from interface:ErrorHandler
Get error description that defined in the enum- Specified by:
getErrorDescription
in interfaceErrorHandler
- Returns:
- error description.
-
getHttpStatusCode
public int getHttpStatusCode()
Description copied from interface:ErrorHandler
Get Http status code that defined in the enum- Specified by:
getHttpStatusCode
in interfaceErrorHandler
- Returns:
- error code.
-
printStackTrace
public boolean printStackTrace()
Description copied from interface:ErrorHandler
Return true if stack trace to print;- Specified by:
printStackTrace
in interfaceErrorHandler
- Returns:
-
-