Class 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
    • Constructor Detail

      • WebAppException

        public WebAppException()
        WebAppConfigurationRuntimeException default constructor. Sets all fields in the object to empty values.
      • WebAppException

        @Deprecated
        public WebAppException​(int errorCode)
        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.
      • 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 exception
        errorCode - 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 exception
        e - 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 exception
        errorCode - The error code to set that field to upon creation.
        e - The original Exception