public class SearchException extends CloudAPIException
CloudAPIException.ErrorCode
Constructor and Description |
---|
SearchException(CloudAPIException.ErrorCode code)
Create a new exception defined by the provided code.
|
SearchException(CloudAPIException.ErrorCode code,
java.lang.String message)
Create a new exception defined by the provided code.
|
SearchException(java.lang.Exception exception)
Constructor using a root cause exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Gets an error message.
|
addToMessage, getCode, getException, getHttpCode, getServerCode
public SearchException(java.lang.Exception exception)
exception
- The root cause of this exceptionpublic SearchException(CloudAPIException.ErrorCode code)
code
- An integer defining this exception (see CloudAPIException
)public SearchException(CloudAPIException.ErrorCode code, java.lang.String message)
code
- An integer defining this exception (see CloudAPIException
)message
- Exception descriptionpublic java.lang.String getMessage()
getMessage
in class CloudAPIException
Throwable.getMessage()