public class

WebAppRuntimeException

extends MSTRUncheckedException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.microstrategy.utils.MSTRUncheckedException
           ↳ com.microstrategy.web.app.WebAppRuntimeException
Known Direct Subclasses

Class Overview

Exception class for all errors thrown from the Web app objects for unrecoverable error. This class extends MSTRUncheckedException 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 unexpected error or an error that cannot be solved through user input is generated.
The symbolic constants for each error code are in the class WebAppErrorCodes.

Summary

Public Constructors
WebAppRuntimeException(LocalizableMessage errorMsg)
Constructor.
WebAppRuntimeException(LocalizableMessage errorMsg, Throwable e)
Constructor.
WebAppRuntimeException(int code, Object[] params, Locale locale)
This constructor is deprecated. use other constructor instead
WebAppRuntimeException(int code, Object[] params, Throwable e, Locale locale)
This constructor is deprecated. use other constructor instead
WebAppRuntimeException()
Constructor.
WebAppRuntimeException(int errorCode)
This constructor is deprecated. use other constructor instead
WebAppRuntimeException(String errorMsg)
Constructor.
WebAppRuntimeException(Exception e)
Constructor.
WebAppRuntimeException(String errorMsg, int errorCode)
WebAppRuntimeException(String errorMsg, Exception e)
Constructor to set an error message and an original Exception
WebAppRuntimeException(int errorCode, Exception e)
Constructor to set an error code and an original Exception
WebAppRuntimeException(String errorMsg, int errorCode, Exception e)
Constructor.
Public Methods
Exception getWrappedException()
This method is deprecated. Use getCause() instead.
[Expand]
Inherited Methods
From class com.microstrategy.utils.MSTRUncheckedException
From class java.lang.Throwable
From class java.lang.Object
From interface com.microstrategy.utils.LocalizableException

Public Constructors

public WebAppRuntimeException (LocalizableMessage errorMsg)

Constructor.

Parameters
errorMsg The error message for this exception.

public WebAppRuntimeException (LocalizableMessage errorMsg, Throwable e)

Constructor.

Parameters
errorMsg The error message for this exception.
e The embedded error object.

public WebAppRuntimeException (int code, Object[] params, Locale locale)

This constructor is deprecated.
use other constructor instead

Constructor.

Parameters
code error code.
params The parameters required to constructing the error message based on error code.
locale The locale to localize this exception.

public WebAppRuntimeException (int code, Object[] params, Throwable e, Locale locale)

This constructor is deprecated.
use other constructor instead

Constructor.

Parameters
code error code.
params The parameters required to constructing the error message based on error code.
locale The locale to localize this exception.

public WebAppRuntimeException ()

Constructor.

public WebAppRuntimeException (int errorCode)

This constructor is deprecated.
use other constructor instead

Constructor.

Parameters
errorCode The error code for this exception.

public WebAppRuntimeException (String errorMsg)

Constructor.

Parameters
errorMsg The error message for this exception.

public WebAppRuntimeException (Exception e)

Constructor.

Parameters
e The embedded error.

public WebAppRuntimeException (String errorMsg, int errorCode)

public WebAppRuntimeException (String errorMsg, Exception e)

Constructor to set an error message and an original Exception

Parameters
errorMsg The error message to set that field to upon creation.
e The original Exception

public WebAppRuntimeException (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 WebAppRuntimeException (String errorMsg, int errorCode, Exception e)

Constructor.

Parameters
errorMsg The error message for this exception.
errorCode The error code for this exception.
e The original Exception

Public Methods

public Exception getWrappedException ()

This method is deprecated.
Use getCause() instead.

Returns the Exception that was originally thrown and caught in the process of throwing this exception, if it exists. Note that if there was no such exception, this will return null.

Returns
  • The original exception.