Class FluxzeroErrors
java.lang.Object
io.fluxzero.sdk.common.exception.FluxzeroErrors
Factory methods for human-readable SDK errors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FluxzeroErrorReportCreates the report used when code calls Fluxzero without an active instance.static FluxzeroErrorReporthandlerInvocationFailed(String handlerDescription, String messageDescription, Throwable cause) Creates the report used when a handler failed while processing a message.static FluxzeroErrorReportmessageDispatchFailed(MessageType messageType, String topic, int messageCount, Throwable cause) Creates the report used when a message cannot be dispatched.static FluxzeroErrorReportperiodicScheduleAnnotationMissing(Class<?> payloadType) Creates the report used when code asks Fluxzero to schedule a value periodically without @Periodic.static FluxzeroErrorReportperiodicScheduleInvalid(Class<?> payloadType) Creates the report used when a periodic schedule is not valid.static FluxzeroErrorReportrequestTimedOut(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.static TimeoutExceptionrequestTimeoutException(String requestDescription, String payloadType, String messageId, Object requestId, String responseDescription, Duration timeout) Creates aTimeoutExceptionwith a human-readable Fluxzero error report as its message.static FluxzeroErrorReportresponseDispatchFailed(String responseDescription, String target, Object requestId, Throwable cause) Creates the report used when Fluxzero cannot dispatch a response.static FluxzeroErrorReportthreadInterrupted(String operationDescription, String messageId, String payloadType) Creates the report used when a blocking wait is interrupted.static FluxzeroErrorReporttrackingConfigurationInvalid(String title, String whatHappened, String howToFix, Object handler, Object consumer) Creates the report used when tracking cannot be configured or started.static FluxzeroErrorReporttrackingNotSupported(MessageType messageType) Creates the report used when tracking is requested for an unsupported message type.static FluxzeroErrorReporttrackingRuntimeFailed(String operationDescription, Object tracker, int[] segment, Long index, Throwable cause) Creates the report used when a tracker fails while managing its runtime state.static FluxzeroErrorReportCreates the report used when a message cannot attach user metadata.
-
Method Details
-
fluxzeroInstanceMissing
Creates the report used when code calls Fluxzero without an active instance. -
requestTimedOut
-
requestTimeoutException
public static TimeoutException requestTimeoutException(String requestDescription, String payloadType, String messageId, Object requestId, String responseDescription, Duration timeout) Creates aTimeoutExceptionwith 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
Creates the report used when a message cannot attach user metadata. -
trackingConfigurationInvalid
-
trackingNotSupported
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
Creates the report used when a periodic schedule is not valid. -
periodicScheduleAnnotationMissing
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.
-