Interface TransformerErrorCallback
The TransformerErrorCallback interface defines a contract for handling transformer errors within the CraftsNet API. Implementations of this interface can be used to customize error handling behavior when transformer exceptions occur.
Transformer errors may arise during the transformation process when data cannot be processed or converted as expected. This interface allows developers to define specific error-handling logic tailored to their application requirements.
Implementing classes must provide an implementation for the handleError(TransformerException) method,
which receives a TransformerException object representing the error that occurred during transformation.
Within this method, developers can implement custom error-handling logic, such as logging, error reporting, or recovery actions.
- Since:
- 3.0.3-SNAPSHOT
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(TransformerException transformerException) Handles transformer errors by implementing custom error-handling logic.
-
Method Details
-
handleError
Handles transformer errors by implementing custom error-handling logic.- Parameters:
transformerException- The TransformerException representing the error that occurred during transformation.- Throws:
Exception- if an error occurs while handling the transformer exception.
-