All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.optim.oaas.client.OperationException.html Maven / Gradle / Ivy

The newest version!






OperationException (Java Client for DOcplexcloud 1.0 API)











com.ibm.optim.oaas.client

Class OperationException

    • 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.
      • OperationException

        public OperationException(String operation,
                          String uri,
                          int code,
                          String gatewayMessage)
    • 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