public class ServiceException extends Exception
| Constructor and Description |
|---|
ServiceException() |
ServiceException(String message) |
ServiceException(String message,
Throwable cause) |
ServiceException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static ServiceException |
create(org.apache.http.HttpRequest httpRequest,
String requestContent,
org.apache.http.HttpResponse httpResponse,
org.apache.http.HttpEntity entity,
String defaultTo) |
static ServiceException |
createFromJson(org.apache.http.HttpRequest httpRequest,
String requestContent,
org.apache.http.HttpResponse httpResponse,
org.apache.http.HttpEntity entity) |
static ServiceException |
createFromXml(org.apache.http.HttpRequest httpRequest,
String requestContent,
org.apache.http.HttpResponse httpResponse,
org.apache.http.HttpEntity entity) |
String |
getErrorCode() |
String |
getErrorMessage() |
String |
getErrorValue(String name) |
Map<String,String> |
getErrorValues() |
String |
getHttpReasonPhrase() |
int |
getHttpStatusCode() |
String |
getMessage() |
String |
getRawResponseBody() |
String |
getServiceName() |
void |
setErrorCode(String errorCode) |
void |
setErrorMessage(String errorMessage) |
void |
setErrorValue(String name,
String value) |
void |
setErrorValues(Map<String,String> errorValues) |
void |
setHttpReasonPhrase(String httpReasonPhrase) |
void |
setHttpStatusCode(int httpStatusCode) |
void |
setRawResponseBody(String body) |
void |
setServiceName(String serviceName) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServiceException()
public ServiceException(String message)
public ServiceException(Throwable cause)
public String getMessage()
getMessage in class Throwablepublic int getHttpStatusCode()
public void setHttpStatusCode(int httpStatusCode)
public String getHttpReasonPhrase()
public void setHttpReasonPhrase(String httpReasonPhrase)
public String getErrorCode()
public void setErrorCode(String errorCode)
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
public String getServiceName()
public void setServiceName(String serviceName)
public void setRawResponseBody(String body)
public String getRawResponseBody()
public static ServiceException create(org.apache.http.HttpRequest httpRequest, String requestContent, org.apache.http.HttpResponse httpResponse, org.apache.http.HttpEntity entity, String defaultTo)
public static ServiceException createFromXml(org.apache.http.HttpRequest httpRequest, String requestContent, org.apache.http.HttpResponse httpResponse, org.apache.http.HttpEntity entity)
public static ServiceException createFromJson(org.apache.http.HttpRequest httpRequest, String requestContent, org.apache.http.HttpResponse httpResponse, org.apache.http.HttpEntity entity)
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/