![JAR search and dependency download from the Maven repository](/logo.png)
com.ibm.optim.oaas.client.OperationException.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api_java_client Show documentation
Show all versions of api_java_client Show documentation
Java client API for DOCplexCloud, version 1.0-STABLE-b832
The newest version!
OperationException (Java Client for DOcplexcloud 1.0 API)
com.ibm.optim.oaas.client
Class OperationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.optim.oaas.client.OaasException
-
- com.ibm.optim.oaas.client.OperationException
-
- All Implemented Interfaces:
- Serializable
public class OperationException
extends OaasException
Exception raised when accessing a remote resource using the HTTP protocol.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors
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)
-
Method Summary
Methods
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.
-
Methods inherited from class com.ibm.optim.oaas.client.OaasException
getLocalizedMessage, getLocalizedMessage, getMessage, getMessageCode, getParameters, getRestStatusCode, getRootCause
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
Constructor Detail
-
OperationException
public OperationException(String operation,
String uri,
int code)
Creates a client exception.
- Parameters:
operation
- The HTTP operation.uri
- The accessed URI.code
- The code returned by the server.
-
OperationException
public OperationException(String operation,
String uri,
int code,
ServerExceptionData data)
Creates a client exception with additional server information
- Parameters:
operation
- The HTTP operation.uri
- The accessed URI.code
- The code returned by the server.data
- Additional data sent by the server.
-
OperationException
public OperationException(String operation,
String uri,
int code,
Exception e)
Creates a client exception with another exception as the source.
- Parameters:
operation
- The HTTP operation.uri
- The accessed URI.code
- The code returned by the server.e
- The source exception.
-
Method Detail
-
getURI
public String getURI()
Returns the server URI if defined.
- Returns:
- The server URI or
null
if not defined.
-
getCode
public int getCode()
Returns the server returned code if defined.
- Returns:
- The code or
0
if not defined.
-
getOperation
public String getOperation()
Returns the operations if defined. The operations are HTTP operations
such as GET, PUT, POST, DELETE.
- Returns:
- The operation or
null
if not defined.
-
getServerExceptionData
public ServerExceptionData getServerExceptionData()
Returns the server side data returned for this exception if defined
- Returns:
- The server exception data of
null
if not defined.
Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy