Class UnsupportedVersion
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- io.temporal.internal.statemachines.UnsupportedVersion
-
- All Implemented Interfaces:
java.io.Serializable
public class UnsupportedVersion extends java.lang.Error
Thrown whenWorkflow.getVersion(String, int, int)
detects that the workflow history was generated by a code that doesn't comply with specified min and max versions.The reason this class extends Error is for application workflow code to not catch it by mistake. The default behavior of the SDK is to block workflow execution while Error is thrown.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnsupportedVersion.UnsupportedVersionException
-
Constructor Summary
Constructors Constructor Description UnsupportedVersion(UnsupportedVersion.UnsupportedVersionException e)
UnsupportedVersion(java.lang.String message)
-
-
-
Constructor Detail
-
UnsupportedVersion
public UnsupportedVersion(java.lang.String message)
-
UnsupportedVersion
public UnsupportedVersion(UnsupportedVersion.UnsupportedVersionException e)
-
-