Class ServiceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.fluxcapacitor.javaclient.common.exception.ServiceException
All Implemented Interfaces:
Serializable

public class ServiceException extends RuntimeException
Exception thrown when a Request fails and an ErrorResult is returned by the Flux platform.

This exception is used to complete the CompletableFuture of a failed request with the message from the associated ErrorResult.

See Also:
  • Constructor Details

    • ServiceException

      public ServiceException(String message)
      Constructs a new exception with the specified error message.
      Parameters:
      message - the message describing the failure