public class

TaskException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.microstrategy.web.tasks.TaskException
Known Direct Subclasses

Class Overview

This is the base class for a set of task-related exceptions.

Summary

Public Constructors
TaskException(String msg)
Creates a new TaskException object.
TaskException(Throwable e)
Creates a new TaskException object.
TaskException(String message, Throwable e)
Creates a new TaskException object.
Public Methods
String getGenericMessage()
Returns the generic message for this exception.
int getStatusCode()
Returns the Status code associated with this exception.
Integer getTaskErrorCode()
Returns the Task Error Code associated with this exception.
void setGenericMessage(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.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public TaskException (String msg)

Creates a new TaskException object.

Parameters
msg Error message

public TaskException (Throwable e)

Creates a new TaskException object.

Parameters
e Exception

public TaskException (String message, Throwable e)

Creates a new TaskException object.

Parameters
message Error message
e Exception

Public Methods

public String getGenericMessage ()

Returns the generic message for this exception.

Returns
  • The generic message.

public int getStatusCode ()

Returns the Status code associated with this exception.

Returns
  • The Status code associated with this exception.

public 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.

public void setGenericMessage (String genericMessage)

Sets the generic message for this exception.

Parameters
genericMessage generic message

public void setStatusCode (int statusCode)

Sets the Status code associated with this exception.

Parameters
statusCode The Status code associated with this exception.

public void setTaskErrorCode (int taskErrCode)

Sets the Task Error Code for this exception.

Parameters
taskErrCode An integer, task-specific error code.