Package com.microstrategy.web.app
Class WebAppException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.microstrategy.utils.MSTRCheckedException
-
- com.microstrategy.web.beans.WebException
-
- com.microstrategy.web.app.WebAppException
-
- All Implemented Interfaces:
LocalizableException
,java.io.Serializable
public class WebAppException extends WebException
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.- Since:
- MicroStrategy Web 7.3.1 or earlier
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.utils.MSTRCheckedException
MSTRCheckedException.ExceptionXMLHandler
-
-
Constructor Summary
Constructors Constructor Description WebAppException()
WebAppConfigurationRuntimeException default constructor.WebAppException(int errorCode)
Deprecated.use other constructor insteadWebAppException(int errorCode, java.lang.Exception e)
Constructor to set an error code and an original ExceptionWebAppException(WebException 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(java.lang.Exception e)
Constructor to create an exception with just based on a previous exception.WebAppException(java.lang.String errorMsg)
Constructor to set a message, but no error code.WebAppException(java.lang.String errorMsg, int errorCode)
Constructor to set a message and error code.WebAppException(java.lang.String errorMsg, int errorCode, java.lang.Exception e)
Constructor to set a message, an error code and an original ExceptionWebAppException(java.lang.String errorMsg, java.lang.Exception e)
Constructor to set a message and the original exception
-
Method Summary
-
Methods inherited from class com.microstrategy.utils.MSTRCheckedException
getCause, getDefaultLocale, getErrorCode, getLocalizableMessage, getMessage, getMessage, getMessage, getRootCause, getRootCause, setCause, setDefaultLocale, setXMLHandler
-
-
-
-
Constructor Detail
-
WebAppException
public WebAppException()
WebAppConfigurationRuntimeException default constructor. Sets all fields in the object to empty values.
-
WebAppException
public WebAppException(int errorCode)
Deprecated.use other constructor insteadConstructor to create an exception with just an error code, no message.- Parameters:
errorCode
- The error code to set that field to upon creation.
-
WebAppException
public WebAppException(java.lang.String errorMsg)
Constructor to set a message, but no error code.- Parameters:
errorMsg
- The error message associated with this exception
-
WebAppException
public WebAppException(java.lang.Exception e)
Constructor to create an exception with just based on a previous exception.- Parameters:
e
- The original Exception
-
WebAppException
public WebAppException(WebObjectsException e)
Constructor to create an exception with just based on a previous exception.- Parameters:
e
- The original Exception
-
WebAppException
public WebAppException(WebException e)
Constructor to create an exception with just based on a previous exception.- Parameters:
e
- The original Exception
-
WebAppException
public WebAppException(java.lang.String errorMsg, int errorCode)
Constructor to set a message and error code.- Parameters:
errorMsg
- The error message associated with this exceptionerrorCode
- The error code to set that field to upon creation.
-
WebAppException
public WebAppException(java.lang.String errorMsg, java.lang.Exception e)
Constructor to set a message and the original exception- Parameters:
errorMsg
- The error message associated with this exceptione
- The original Exception
-
WebAppException
public WebAppException(int errorCode, java.lang.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
-
WebAppException
public WebAppException(java.lang.String errorMsg, int errorCode, java.lang.Exception e)
Constructor to set a message, an error code and an original Exception- Parameters:
errorMsg
- The error message associated with this exceptionerrorCode
- The error code to set that field to upon creation.e
- The original Exception
-
-