public final class

MWSException

extends MSTRCheckedException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.microstrategy.utils.MSTRCheckedException
         ↳ com.microstrategy.webservices.MWSException

Class Overview

The class MWSException is a subclass of java.lang.Exception. This is an exception class for all errors thrown by the MicroStrategy Web Services code. This class extends the standard Exception class by providing a method to return an error code associated with the exception.

Summary

Public Constructors
MWSException()
Constructor
MWSException(String errorMsg)
Constructor
MWSException(int errorCode)
Constructor
MWSException(String errorMsg, int errorCode)
Constructor
MWSException(String errorMsg, int errorCode, Throwable e)
Constructor
MWSException(Throwable e)
Constructor
MWSException(LocalizableMessage errorMsg)
Constructor
MWSException(LocalizableMessage errorMsg, Throwable e)
Constructor
MWSException(int errorCode, Object[] params, Locale locale)
Constructor
MWSException(int errorCode, Object[] params, Throwable e, Locale locale)
Constructor
Public Methods
String getStackTraceString()
Converts PrintStream version of stack trace to String.
[Expand]
Inherited Methods
From class com.microstrategy.utils.MSTRCheckedException
From class java.lang.Throwable
From class java.lang.Object
From interface com.microstrategy.utils.LocalizableException

Public Constructors

public MWSException ()

Constructor

public MWSException (String errorMsg)

Constructor

Parameters
errorMsg Error message text.

public MWSException (int errorCode)

Constructor

Parameters
errorCode Exception error code.

public MWSException (String errorMsg, int errorCode)

Constructor

Parameters
errorMsg Error message text.
errorCode Exception error code.

public MWSException (String errorMsg, int errorCode, Throwable e)

Constructor

Parameters
errorMsg Error message text.
errorCode Exception error code.
e Associated nested exception.

public MWSException (Throwable e)

Constructor

Parameters
e Associated nested exception.

public MWSException (LocalizableMessage errorMsg)

Constructor

Parameters
errorMsg Localizable error message.

public MWSException (LocalizableMessage errorMsg, Throwable e)

Constructor

Parameters
errorMsg Localizable error message.
e Associated nested exception.

public MWSException (int errorCode, Object[] params, Locale locale)

Constructor

Parameters
errorCode Exception error code.
params Parameters to message associated with errorCode.
locale Default locale of message associated with errorCode.

public MWSException (int errorCode, Object[] params, Throwable e, Locale locale)

Constructor

Parameters
errorCode Exception error code.
params Parameters to message associated with errorCode.
e Associated nested exception.
locale Default locale of message associated with errorCode.

Public Methods

public String getStackTraceString ()

Converts PrintStream version of stack trace to String.

Returns
  • String version of stack trace