Class HandlerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.microstrategy.web.objects.actions.HandlerException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
HandlerConfigurationException
,HandlerInternalException
,HandlerRequestMalformedException
public class HandlerException extends java.lang.Exception
This is the base class for a set of task-related exceptions.- Since:
- MicroStrategy Web 8.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HandlerException(java.lang.String msg)
Creates a new HandlerException object.HandlerException(java.lang.String message, java.lang.Throwable e)
Creates a new HandlerException object.HandlerException(java.lang.Throwable e)
Creates a new HandlerException object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getGenericMessage()
Returns the generic message for this exception.int
getStatusCode()
Returns the Status code associated with this exception.java.lang.Integer
getTaskErrorCode()
Returns the Task Error Code associated with this exception.void
setGenericMessage(java.lang.String genericMessage)
Sets the generic message for this exception.void
setStatusCode(int statusCode)
Sets the Status code associated with this exception.void
setTaskErrorCode(int taskErrCode)
Sets the Task Error Code for this exception.
-
-
-
Constructor Detail
-
HandlerException
public HandlerException(java.lang.String msg)
Creates a new HandlerException object.- Parameters:
msg
- Error message
-
HandlerException
public HandlerException(java.lang.Throwable e)
Creates a new HandlerException object.- Parameters:
e
- Exception
-
HandlerException
public HandlerException(java.lang.String message, java.lang.Throwable e)
Creates a new HandlerException object.- Parameters:
message
- Error messagee
- Exception- Since:
- MicroStrategy Web 9.0.0
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
Returns the Status code associated with this exception.- Returns:
- The Status code associated with this exception.
-
setStatusCode
public void setStatusCode(int statusCode)
Sets the Status code associated with this exception.- Parameters:
statusCode
- The Status code associated with this exception.
-
getTaskErrorCode
public java.lang.Integer getTaskErrorCode()
Returns the Task Error Code associated with this exception.- Returns:
- The Task Error Code (as an Integer). If null, no error code has been specified.
-
setTaskErrorCode
public void setTaskErrorCode(int taskErrCode)
Sets the Task Error Code for this exception.- Parameters:
taskErrCode
- An integer, task-specific error code.
-
getGenericMessage
public java.lang.String getGenericMessage()
Returns the generic message for this exception.- Returns:
- The generic message.
-
setGenericMessage
public void setGenericMessage(java.lang.String genericMessage)
Sets the generic message for this exception.- Parameters:
genericMessage
- generic message
-
-