Package com.microstrategy.webapi
Class MSTRDocumentException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- com.microstrategy.utils.MSTRCheckedException
- 
- com.microstrategy.webapi.MSTRWebAPIException
- 
- com.microstrategy.webapi.MSTRDocumentException
 
 
 
 
 
- 
- All Implemented Interfaces:
- LocalizableException,- java.io.Serializable
 
 public class MSTRDocumentException extends MSTRWebAPIException - Since:
- MicroStrategy Web 7.5.0
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.microstrategy.utils.MSTRCheckedExceptionMSTRCheckedException.ExceptionXMLHandler
 
- 
 - 
Constructor SummaryConstructors Constructor Description MSTRDocumentException(int code, java.lang.Object[] params, java.lang.Throwable e, java.util.Locale locale)Construtor.MSTRDocumentException(int code, java.lang.Object[] params, java.util.Locale locale)Construtor.MSTRDocumentException(LocalizableMessage errorMsg)Construtor.MSTRDocumentException(LocalizableMessage errorMsg, java.lang.Throwable e)Construtor.MSTRDocumentException(java.lang.String errorMsg)Constructor.MSTRDocumentException(java.lang.String errorMsg, int errorCode)Constructor.MSTRDocumentException(java.lang.String errorMsg, int errorCode, java.lang.Throwable e)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()Returns the error message.java.lang.StringgetMessage(boolean includeMainMessage, boolean includeReportMessages, java.lang.String newline)java.lang.StringgetReportErrorCode(int index)java.lang.StringgetReportErrorMessage(int index)java.lang.StringgetReportID(int index)java.lang.StringgetReportName(int index)intsize()- 
Methods inherited from class com.microstrategy.webapi.MSTRWebAPIExceptioncanRetry, isRetryable, setIsRetryable, setNoRetry
 - 
Methods inherited from class com.microstrategy.utils.MSTRCheckedExceptiongetCause, getDefaultLocale, getErrorCode, getLocalizableMessage, getMessage, getMessage, getRootCause, getRootCause, setCause, setDefaultLocale, setXMLHandler
 
- 
 
- 
- 
- 
Constructor Detail- 
MSTRDocumentExceptionpublic MSTRDocumentException(LocalizableMessage errorMsg) Construtor.- Parameters:
- errorMsg- The error message for this exception.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
MSTRDocumentExceptionpublic MSTRDocumentException(LocalizableMessage errorMsg, java.lang.Throwable e) Construtor.- Parameters:
- errorMsg- The error message for this exception.
- e- The embedded error.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
MSTRDocumentExceptionpublic MSTRDocumentException(int code, java.lang.Object[] params, java.util.Locale locale)Construtor.- Parameters:
- code- Error code for this exception.
- locale- The default locale for this exception.
- params- The parameters required to generate the error message based on the error code.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
MSTRDocumentExceptionpublic MSTRDocumentException(int code, java.lang.Object[] params, java.lang.Throwable e, java.util.Locale locale)Construtor.- Parameters:
- code- Error code for this exception.
- locale- The default locale for this exception.
- params- The parameters required to generate the error message based on the error code.
- e- Embedded error.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
MSTRDocumentExceptionpublic MSTRDocumentException(java.lang.String errorMsg) Constructor.- Parameters:
- errorMsg- Error message.
 
 - 
MSTRDocumentExceptionpublic MSTRDocumentException(java.lang.String errorMsg, int errorCode)Constructor.- Parameters:
- errorMsg- Error message
- errorCode- Error code
 
 - 
MSTRDocumentExceptionpublic MSTRDocumentException(java.lang.String errorMsg, int errorCode, java.lang.Throwable e)Constructor.- Parameters:
- errorMsg- Error message
- errorCode- Error code
- e- Embedded error.
 
 
- 
 - 
Method Detail- 
getReportIDpublic java.lang.String getReportID(int index) 
 - 
getReportNamepublic java.lang.String getReportName(int index) 
 - 
getReportErrorMessagepublic java.lang.String getReportErrorMessage(int index) 
 - 
getReportErrorCodepublic java.lang.String getReportErrorCode(int index) 
 - 
sizepublic int size() 
 - 
getMessagepublic java.lang.String getMessage() Description copied from class:MSTRCheckedExceptionReturns the error message. If this is null and the error code is 0, it will first examine if there is an embedded exceptionMSTRCheckedException.getCause(), if so and it is either a MSTRCheckedException or MSTRUncheckedException, it will attempt to return their error message instead (recursively searching). If the message is not null or the error code is non-zero, the message of this exception is returned.- Specified by:
- getMessagein interface- LocalizableException
- Overrides:
- getMessagein class- MSTRCheckedException
- Returns:
- The error message.
 
 - 
getMessagepublic java.lang.String getMessage(boolean includeMainMessage, boolean includeReportMessages, java.lang.String newline)
 
- 
 
-