public class AnywhereExceptionFactory
extends java.lang.Object
| Constructor and Description |
|---|
AnywhereExceptionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDefaultHumanReadableErrorMessage()
Returns the default human readable error message.
|
static java.lang.String |
getHumanReadableErrorMessage(ErrorMessage error)
Returns a human readable error message associated with the specified error.
|
static void |
throwHttpException(java.lang.String statusMessage,
int statusCode,
ErrorMessage errorMessage,
java.util.Set<FssApiVersion> supportedVersions)
Throws the appropriate HTTP exception based on the error code, status message, and any error
message returned from the server.
|
static void |
throwHttpException(java.lang.String statusMessage,
int statusCode,
java.util.Set<FssApiVersion> supportedVersions)
Throws the appropriate HTTP exception based on the error code and status message.
|
public static void throwHttpException(java.lang.String statusMessage,
int statusCode,
java.util.Set<FssApiVersion> supportedVersions)
throws AnywhereException
statusCode - AnywhereExceptionpublic static void throwHttpException(java.lang.String statusMessage,
int statusCode,
ErrorMessage errorMessage,
java.util.Set<FssApiVersion> supportedVersions)
throws AnywhereException
statusCode - AnywhereExceptionpublic static java.lang.String getHumanReadableErrorMessage(ErrorMessage error)
public static java.lang.String getDefaultHumanReadableErrorMessage()