Class UnresolvableExtensionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.yworkflow.common.error.WorkflowRuntimeException
com.yworkflow.definition.model.extension.error.UnresolvableExtensionException
- All Implemented Interfaces:
Serializable
Runtime exception thrown when a workflow extension cannot be resolved by the ExtensionProvider.
UnresolvableExtensionException is used to indicate that the workflow engine was unable to find or
instantiate a required extension based on the provided type and value.
This exception extends WorkflowRuntimeException, making it an unchecked exception that indicates internal engine failures related to extension resolution. It is typically thrown when the ExtensionProvider cannot find a registered extension for the specified type and value, or when there are issues instantiating the extension class.
The exception includes both the name of the extension type and the ExtensionRegistration that failed, allowing for detailed error reporting and debugging.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnresolvableExtensionException(String name, ExtensionRegistration registration) Creates a new UnresolvableExtensionException with the specified extension name and registration details. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the extension type that could not be resolved.Returns the extension registration that failed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnresolvableExtensionException
Creates a new UnresolvableExtensionException with the specified extension name and registration details.- Parameters:
name- the name of the extension type that could not be resolvedregistration- the extension registration that failed
-
-
Method Details
-
getName
Returns the name of the extension type that could not be resolved.- Returns:
- the extension type name
-
getRegistration
Returns the extension registration that failed.- Returns:
- the failed extension registration
-