Package com.microstrategy.web.app.beans
Class WebAppBeanErrorImpl
- java.lang.Object
-
- com.microstrategy.web.app.beans.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
-
-
Constructor Summary
Constructors Constructor Description WebAppBeanErrorImpl()Default constructor, no arguments.WebAppBeanErrorImpl(int errCode)Constructor.WebAppBeanErrorImpl(int errCode, java.lang.String errMsg)Constructor.WebAppBeanErrorImpl(java.lang.String errMsg)Constructor.WebAppBeanErrorImpl(java.lang.Throwable e)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()Return the cause of the error, if there is any available.intgetErrorCode()Returns the error code to the caller.java.lang.StringgetErrorMessage()Return the error message to the caller.
-
-
-
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 theThrowableobject provided- Parameters:
e-
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
Description copied from interface:WebBeanErrorReturns the error code to the caller. By default the error code is zero.- Specified by:
getErrorCodein interfaceWebBeanError- Returns:
- the error code set by the last operation on the bean
- See Also:
WebBeanError.getErrorCode()
-
getErrorMessage
public java.lang.String getErrorMessage()
Description copied from interface:WebBeanErrorReturn the error message to the caller.- Specified by:
getErrorMessagein interfaceWebBeanError- Returns:
- the error message set by the last operation on the bean.
- See Also:
WebBeanError.getErrorMessage()
-
getCause
public java.lang.Throwable getCause()
Description copied from interface:WebBeanErrorReturn the cause of the error, if there is any available.- Specified by:
getCausein interfaceWebBeanError- 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()
-
-