public class ToolingServiceAPIException extends RuntimeException
Response body if there is one.| Modifier and Type | Method and Description |
|---|---|
ErrorCode |
getErrorCode() |
String |
getReasonPhrase() |
int |
getStatusCode() |
static ToolingServiceAPIException |
newToolingServiceAPIException(javax.ws.rs.core.Response response)
Creates a instance of the exception with the given response.
|
static ToolingServiceAPIException |
newToolingServiceAPIException(javax.ws.rs.core.Response response,
Throwable cause)
Creates a instance of the exception with the given response and cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic int getStatusCode()
public String getReasonPhrase()
public ErrorCode getErrorCode()
public static ToolingServiceAPIException newToolingServiceAPIException(javax.ws.rs.core.Response response)
response - Response from server.public static ToolingServiceAPIException newToolingServiceAPIException(javax.ws.rs.core.Response response, Throwable cause)
response - Response from server.cause - Throwable that caused the error.Copyright © 2017 MuleSoft, Inc.. All rights reserved.