java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | com.microstrategy.utils.MSTRCheckedException | |||
↳ | com.microstrategy.webapi.MSTRWebAPIException |
![]() |
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MSTRWebAPIException(LocalizableMessage errorMsg)
Constructor.
| |||||||||||
MSTRWebAPIException(LocalizableMessage errorMsg, Throwable e)
Constructor.
| |||||||||||
MSTRWebAPIException(int code, Object[] params, Locale locale)
Constructor.
| |||||||||||
MSTRWebAPIException(int code, Object[] params, Throwable e, Locale locale)
Constructor.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MSTRWebAPIException() | |||||||||||
MSTRWebAPIException(String errorMsg) | |||||||||||
MSTRWebAPIException(Throwable e) | |||||||||||
MSTRWebAPIException(int errorCode) | |||||||||||
MSTRWebAPIException(String errorMsg, int errorCode) | |||||||||||
MSTRWebAPIException(String errorMsg, int errorCode, Throwable e) |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | canRetry() | ||||||||||
void | setNoRetry(boolean value) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructor.
errorMsg | error message |
---|
Constructor.
errorMsg | error message |
---|---|
e | Embedded error |
Constructor.
code | error code |
---|---|
params | parameters required to generate error message based on error code |
locale | default locale for this exception |
Constructor.
code | error code |
---|---|
params | parameters required to generate error message based on error code |
e | embedded error |
locale | default locale for this exception |