Class CryptoServiceException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApiError, TransportError

public abstract sealed class CryptoServiceException extends RuntimeException permits ApiError, TransportError
The base of every error the client raises for a call: ApiError when the server answered with an error status, TransportError when no usable answer arrived.

Messages name the method, path and status only. They never contain credentials, keys, plaintexts or request and response bodies, so they are safe to log.

See Also:
  • Method Details

    • method

      public String method()
      The HTTP method of the failed call.
      Returns:
      for example POST
    • path

      public String path()
      The path of the failed call, below the base URL.
      Returns:
      for example /v2/sign