public class OperationException extends OaasException
| Constructor and Description |
|---|
OperationException(String operation,
String uri,
int code)
Creates a client exception.
|
OperationException(String operation,
String uri,
int code,
Exception e)
Creates a client exception with another exception as the source.
|
OperationException(String operation,
String uri,
int code,
ServerExceptionData data)
Creates a client exception with additional server information
|
OperationException(String operation,
String uri,
int code,
String gatewayMessage) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the server returned code if defined.
|
String |
getOperation()
Returns the operations if defined.
|
ServerExceptionData |
getServerExceptionData()
Returns the server side data returned for this exception if defined
|
String |
getURI()
Returns the server URI if defined.
|
getLocalizedMessage, getLocalizedMessage, getMessage, getMessageCode, getParameters, getRestStatusCode, getRootCauseaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic OperationException(String operation, String uri, int code)
operation - The HTTP operation.uri - The accessed URI.code - The code returned by the server.public OperationException(String operation, String uri, int code, ServerExceptionData data)
operation - The HTTP operation.uri - The accessed URI.code - The code returned by the server.data - Additional data sent by the server.public OperationException(String operation, String uri, int code, Exception e)
operation - The HTTP operation.uri - The accessed URI.code - The code returned by the server.e - The source exception.public String getURI()
null if not defined.public int getCode()
0 if not defined.public String getOperation()
null if not defined.public ServerExceptionData getServerExceptionData()
null if not defined.Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.