Package com.microstrategy.webapi
Class MSTRWebAPIException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- com.microstrategy.utils.MSTRCheckedException
- 
- com.microstrategy.webapi.MSTRWebAPIException
 
 
 
 
- 
- All Implemented Interfaces:
- LocalizableException,- java.io.Serializable
 - Direct Known Subclasses:
- ACMException,- MSTRDocumentException,- MSTRRestAPIException
 
 public class MSTRWebAPIException extends MSTRCheckedException Exception class for all errors thrown from the WebAPI. Field for error code and another exception added to regular exception's implementation. All functions in the Web API throw this object if an error occurs. In that case, the message field(which can be seen via getMessage()) will have the error message in text format, and the error code can be acquired by getErrorCode. The symbolic constants for each error code are in the class WebAPIErrorCodes. Finally, for exceptions where there was another exception thrown, this exception can be acquired by getWrappedException.- Since:
- MicroStrategy Web 7.3.1 or earlier
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.microstrategy.utils.MSTRCheckedExceptionMSTRCheckedException.ExceptionXMLHandler
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedMSTRWebAPIException()protectedMSTRWebAPIException(int errorCode)MSTRWebAPIException(int code, java.lang.Object[] params, java.lang.Throwable e, java.util.Locale locale)Constructor.MSTRWebAPIException(int code, java.lang.Object[] params, java.util.Locale locale)Constructor.MSTRWebAPIException(LocalizableMessage errorMsg)Constructor.MSTRWebAPIException(LocalizableMessage errorMsg, java.lang.Throwable e)Constructor.protectedMSTRWebAPIException(java.lang.String errorMsg)protectedMSTRWebAPIException(java.lang.String errorMsg, int errorCode)protectedMSTRWebAPIException(java.lang.String errorMsg, int errorCode, java.lang.Throwable e)protectedMSTRWebAPIException(java.lang.String errorMsg, java.lang.Throwable e)protectedMSTRWebAPIException(java.lang.Throwable e)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanRetry()protected booleanisRetryable()isRetryable returns true if this particular error is a retryable exception.
 Retryable exceptions include: missing session (maybe it timed out) dead IServer (maybe it was shut down or is hanging) missing project (maybe it was just unloaded).protected voidsetIsRetryable(boolean iIsRetryable)setIsRetyable sets whether or not this particular error is retryable.
 Retryable exceptions include: missing session (maybe it timed out) dead IServer (maybe it was shut down or is hanging) missing project (maybe it was just unloaded).protected voidsetNoRetry(boolean value)- 
Methods inherited from class com.microstrategy.utils.MSTRCheckedExceptiongetCause, getDefaultLocale, getErrorCode, getLocalizableMessage, getMessage, getMessage, getMessage, getRootCause, getRootCause, setCause, setDefaultLocale, setXMLHandler
 
- 
 
- 
- 
- 
Constructor Detail- 
MSTRWebAPIExceptionpublic MSTRWebAPIException(LocalizableMessage errorMsg) Constructor.- Parameters:
- errorMsg- error message
- Since:
- MicroStrategy Web 8.0.0
 
 - 
MSTRWebAPIExceptionpublic MSTRWebAPIException(LocalizableMessage errorMsg, java.lang.Throwable e) Constructor.- Parameters:
- errorMsg- error message
- e- Embedded error
- Since:
- MicroStrategy Web 8.0.0
 
 - 
MSTRWebAPIExceptionpublic MSTRWebAPIException(int code, java.lang.Object[] params, java.util.Locale locale)Constructor.- Parameters:
- code- error code
- params- parameters required to generate error message based on error code
- locale- default locale for this exception
- Since:
- MicroStrategy Web 8.0.0
 
 - 
MSTRWebAPIExceptionpublic MSTRWebAPIException(int code, java.lang.Object[] params, java.lang.Throwable e, java.util.Locale locale)Constructor.- Parameters:
- code- error code
- params- parameters required to generate error message based on error code
- locale- default locale for this exception
- e- embedded error
- Since:
- MicroStrategy Web 8.0.0
 
 - 
MSTRWebAPIExceptionprotected MSTRWebAPIException() 
 - 
MSTRWebAPIExceptionprotected MSTRWebAPIException(java.lang.String errorMsg) 
 - 
MSTRWebAPIExceptionprotected MSTRWebAPIException(java.lang.Throwable e) 
 - 
MSTRWebAPIExceptionprotected MSTRWebAPIException(java.lang.String errorMsg, java.lang.Throwable e)
 - 
MSTRWebAPIExceptionprotected MSTRWebAPIException(int errorCode) 
 - 
MSTRWebAPIExceptionprotected MSTRWebAPIException(java.lang.String errorMsg, int errorCode)
 - 
MSTRWebAPIExceptionprotected MSTRWebAPIException(java.lang.String errorMsg, int errorCode, java.lang.Throwable e)
 
- 
 - 
Method Detail- 
setNoRetryprotected void setNoRetry(boolean value) - Since:
- MicroStrategy Web 9.0.0
 
 - 
canRetryprotected boolean canRetry() - Since:
- MicroStrategy Web 9.0.0
 
 - 
isRetryableprotected boolean isRetryable() isRetryable returns true if this particular error is a retryable exception.
 Retryable exceptions include:- missing session (maybe it timed out)
- dead IServer (maybe it was shut down or is hanging)
- missing project (maybe it was just unloaded).
 - Returns:
 
 - 
setIsRetryableprotected void setIsRetryable(boolean iIsRetryable) setIsRetyable sets whether or not this particular error is retryable.
 Retryable exceptions include:- missing session (maybe it timed out)
- dead IServer (maybe it was shut down or is hanging)
- missing project (maybe it was just unloaded).
 - Parameters:
- iIsRetryable-
 
 
- 
 
-