-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce OfficeStamperErrorHandler for custom error handling
Implemented a new interface, OfficeStamperErrorHandler, and integrated it into various classes to allow users to define custom error resolution strategies. This change replaces the use of Function<ReflectiveOperationException, TypedValue> with the new interface for more flexibility and improved error handling consistency.
- Loading branch information
1 parent
7550ae5
commit 65cf573
Showing
8 changed files
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
engine/src/main/java/pro/verron/officestamper/api/OfficeStamperErrorHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package pro.verron.officestamper.api; | ||
|
||
import org.springframework.lang.Nullable; | ||
|
||
public interface OfficeStamperErrorHandler { | ||
@Nullable Object resolve(Exception exception); | ||
} |
5 changes: 5 additions & 0 deletions
5
engine/src/main/java/pro/verron/officestamper/api/UnresolvedExpressionHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package pro.verron.officestamper.api; | ||
|
||
public interface UnresolvedExpressionHandler | ||
extends OfficeStamperErrorHandler { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters