Class FlowDefinitionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.superdurable.dex.exceptions.FlowDefinitionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidStepResultException

public class FlowDefinitionException extends RuntimeException
Reports an invalid local Flow, Step, persistence, or RPC definition.

This exception is raised before or while mapping a request when the Java contract cannot be represented safely, such as a duplicate Flow type, Step type, RPC name, or persistence definition name; an unsupported RPC signature; a final RPC class; or a value whose runtime type does not match its registered definition. Fix application definitions rather than retrying the operation unchanged.

See Also:
  • Constructor Details

    • FlowDefinitionException

      public FlowDefinitionException(String message)
      Creates a definition failure without an underlying cause.
      Parameters:
      message - the user-actionable contract violation
    • FlowDefinitionException

      public FlowDefinitionException(String message, Throwable cause)
      Creates a definition failure caused by reflection or mapping work.
      Parameters:
      message - the user-actionable contract violation
      cause - the underlying local failure