Class ServerException

All Implemented Interfaces:
Serializable

public class ServerException extends RuntimeException
See Also:
  • Field Details

  • Constructor Details

    • ServerException

      public ServerException(int code, String message)
    • ServerException

      public ServerException(int code, String message, int transportProtocolCode)
  • Method Details

    • getCode

      public int getCode()
      Returns CH server error code. May return 0 if code is unknown.
      Returns:
      - error code from server response
    • getTransportProtocolCode

      public int getTransportProtocolCode()
      Returns error code of underlying transport protocol. For example, HTTP status. By default, will return 500 what is derived from HTTP Server Internal Error.
      Returns:
      - transport status code