public class

WebAppBeanErrorImpl

extends Object
implements WebBeanError
java.lang.Object
   ↳ com.microstrategy.web.app.beans.WebAppBeanErrorImpl
Known Direct Subclasses

Class Overview

Title: WebAppBeanErrorImpl.

Description:

Copyright: Copyright (c) 2002

Company: Microstrategy, Inc.

Summary

Public Constructors
WebAppBeanErrorImpl()
Default constructor, no arguments.
WebAppBeanErrorImpl(int errCode)
Constructor.
WebAppBeanErrorImpl(String errMsg)
Constructor.
WebAppBeanErrorImpl(int errCode, String errMsg)
Constructor.
WebAppBeanErrorImpl(Throwable e)
Constructor.
Public Methods
Throwable getCause()
Return the cause of the error, if there is any available.
int getErrorCode()
Returns the error code to the caller.
String getErrorMessage()
Return the error message to the caller.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.microstrategy.web.beans.WebBeanError

Public Constructors

public WebAppBeanErrorImpl ()

Default constructor, no arguments.

public WebAppBeanErrorImpl (int errCode)

Constructor.
Initializes the error code instance variable

public WebAppBeanErrorImpl (String errMsg)

Constructor.
Initializes the error message instance variable

public WebAppBeanErrorImpl (int errCode, String errMsg)

Constructor.
Initializes the error message and error code instance variables

public WebAppBeanErrorImpl (Throwable e)

Constructor.
Initializes the error message and error code instance variables by extracting them from the Throwable object provided

Public Methods

public Throwable getCause ()

Return the cause of the error, if there is any available.

Returns
  • the cause of the error, if available. Can be null, if there is no embedded exception available.
See Also

public int getErrorCode ()

Returns the error code to the caller. By default the error code is zero.

Returns
  • the error code set by the last operation on the bean
See Also

public String getErrorMessage ()

Return the error message to the caller.

Returns
  • the error message set by the last operation on the bean.