public class

WebAppException

extends WebException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.microstrategy.utils.MSTRCheckedException
         ↳ com.microstrategy.web.beans.WebException
           ↳ com.microstrategy.web.app.WebAppException

Class Overview

Exception class for all errors thrown from the Web app objects. This class extends the standard Exception class by providing Constructors based on other exceptions, a method to retrieve the original Exception and a method to return an error code.
All functions in the Web objects throw this object if an error that can be solved through user input is generated.
The symbolic constants for each error code are in the class WebAppErrorCodes.

Summary

Public Constructors
WebAppException()
WebAppConfigurationRuntimeException default constructor.
WebAppException(int errorCode)
This constructor is deprecated. use other constructor instead
WebAppException(String errorMsg)
Constructor to set a message, but no error code.
WebAppException(Exception e)
Constructor to create an exception with just based on a previous exception.
WebAppException(WebObjectsException e)
Constructor to create an exception with just based on a previous exception.
WebAppException(WebException e)
Constructor to create an exception with just based on a previous exception.
WebAppException(String errorMsg, int errorCode)
Constructor to set a message and error code.
WebAppException(String errorMsg, Exception e)
Constructor to set a message and the original exception
WebAppException(int errorCode, Exception e)
Constructor to set an error code and an original Exception
WebAppException(String errorMsg, int errorCode, Exception e)
Constructor to set a message, an error code and an original Exception
[Expand]
Inherited Methods
From class com.microstrategy.utils.MSTRCheckedException
From class java.lang.Throwable
From class java.lang.Object
From interface com.microstrategy.utils.LocalizableException

Public Constructors

public WebAppException ()

WebAppConfigurationRuntimeException default constructor. Sets all fields in the object to empty values.

public WebAppException (int errorCode)

This constructor is deprecated.
use other constructor instead

Constructor to create an exception with just an error code, no message.

Parameters
errorCode The error code to set that field to upon creation.

public WebAppException (String errorMsg)

Constructor to set a message, but no error code.

Parameters
errorMsg The error message associated with this exception

public WebAppException (Exception e)

Constructor to create an exception with just based on a previous exception.

Parameters
e The original Exception

public WebAppException (WebObjectsException e)

Constructor to create an exception with just based on a previous exception.

Parameters
e The original Exception

public WebAppException (WebException e)

Constructor to create an exception with just based on a previous exception.

Parameters
e The original Exception

public WebAppException (String errorMsg, int errorCode)

Constructor to set a message and error code.

Parameters
errorMsg The error message associated with this exception
errorCode The error code to set that field to upon creation.

public WebAppException (String errorMsg, Exception e)

Constructor to set a message and the original exception

Parameters
errorMsg The error message associated with this exception
e The original Exception

public WebAppException (int errorCode, Exception e)

Constructor to set an error code and an original Exception

Parameters
errorCode The error code to set that field to upon creation.
e The original Exception

public WebAppException (String errorMsg, int errorCode, Exception e)

Constructor to set a message, an error code and an original Exception

Parameters
errorMsg The error message associated with this exception
errorCode The error code to set that field to upon creation.
e The original Exception