Class WebAppBeanErrorImpl

  • All Implemented Interfaces:
    WebBeanError
    Direct Known Subclasses:
    AttributeRemappingErrorImpl

    public class WebAppBeanErrorImpl
    extends java.lang.Object
    implements WebBeanError

    Title: WebAppBeanErrorImpl.

    Description:

    Copyright: Copyright (c) 2002

    Company: Microstrategy, Inc.

    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getCause()
      Return the cause of the error, if there is any available.
      int getErrorCode()
      Returns the error code to the caller.
      java.lang.String getErrorMessage()
      Return the error message to the caller.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebAppBeanErrorImpl

        public WebAppBeanErrorImpl()
        Default constructor, no arguments.
      • WebAppBeanErrorImpl

        public WebAppBeanErrorImpl​(int errCode)
        Constructor.
        Initializes the error code instance variable
        Parameters:
        errCode -
      • WebAppBeanErrorImpl

        public WebAppBeanErrorImpl​(java.lang.String errMsg)
        Constructor.
        Initializes the error message instance variable
        Parameters:
        errMsg -
      • WebAppBeanErrorImpl

        public WebAppBeanErrorImpl​(int errCode,
                                   java.lang.String errMsg)
        Constructor.
        Initializes the error message and error code instance variables
        Parameters:
        errCode -
        errMsg -
      • WebAppBeanErrorImpl

        public WebAppBeanErrorImpl​(java.lang.Throwable e)
        Constructor.
        Initializes the error message and error code instance variables by extracting them from the Throwable object provided
        Parameters:
        e -
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Description copied from interface: WebBeanError
        Returns the error code to the caller. By default the error code is zero.
        Specified by:
        getErrorCode in interface WebBeanError
        Returns:
        the error code set by the last operation on the bean
        See Also:
        WebBeanError.getErrorCode()
      • getCause

        public java.lang.Throwable getCause()
        Description copied from interface: WebBeanError
        Return the cause of the error, if there is any available.
        Specified by:
        getCause in interface WebBeanError
        Returns:
        the cause of the error, if available. Can be null, if there is no embedded exception available.
        Since:
        MicroStrategy Web 7.5.0
        See Also:
        WebBeanError.getCause()