Class FluxzeroErrors

java.lang.Object
io.fluxzero.sdk.common.exception.FluxzeroErrors

public final class FluxzeroErrors extends Object
Factory methods for human-readable SDK errors.
  • Method Details

    • fluxzeroInstanceMissing

      public static FluxzeroErrorReport fluxzeroInstanceMissing()
      Creates the report used when code calls Fluxzero without an active instance.
    • requestTimedOut

      public static FluxzeroErrorReport requestTimedOut(String requestDescription, String payloadType, String messageId, Object requestId, String responseDescription, Duration timeout)
      Creates the report used when a request does not receive a response in time.
    • requestTimeoutException

      public static TimeoutException requestTimeoutException(String requestDescription, String payloadType, String messageId, Object requestId, String responseDescription, Duration timeout)
      Creates a TimeoutException with a human-readable Fluxzero error report as its message.
    • handlerInvocationFailed

      public static FluxzeroErrorReport handlerInvocationFailed(String handlerDescription, String messageDescription, Throwable cause)
      Creates the report used when a handler failed while processing a message.
    • responseDispatchFailed

      public static FluxzeroErrorReport responseDispatchFailed(String responseDescription, String target, Object requestId, Throwable cause)
      Creates the report used when Fluxzero cannot dispatch a response.
    • messageDispatchFailed

      public static FluxzeroErrorReport messageDispatchFailed(MessageType messageType, String topic, int messageCount, Throwable cause)
      Creates the report used when a message cannot be dispatched.
    • userProviderMissing

      public static FluxzeroErrorReport userProviderMissing()
      Creates the report used when a message cannot attach user metadata.
    • trackingConfigurationInvalid

      public static FluxzeroErrorReport trackingConfigurationInvalid(String title, String whatHappened, String howToFix, Object handler, Object consumer)
      Creates the report used when tracking cannot be configured or started.
    • trackingNotSupported

      public static FluxzeroErrorReport trackingNotSupported(MessageType messageType)
      Creates the report used when tracking is requested for an unsupported message type.
    • trackingRuntimeFailed

      public static FluxzeroErrorReport trackingRuntimeFailed(String operationDescription, Object tracker, int[] segment, Long index, Throwable cause)
      Creates the report used when a tracker fails while managing its runtime state.
    • periodicScheduleInvalid

      public static FluxzeroErrorReport periodicScheduleInvalid(Class<?> payloadType)
      Creates the report used when a periodic schedule is not valid.
    • periodicScheduleAnnotationMissing

      public static FluxzeroErrorReport periodicScheduleAnnotationMissing(Class<?> payloadType)
      Creates the report used when code asks Fluxzero to schedule a value periodically without @Periodic.
    • threadInterrupted

      public static FluxzeroErrorReport threadInterrupted(String operationDescription, String messageId, String payloadType)
      Creates the report used when a blocking wait is interrupted.