-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue-4. in case many event listeners present call all of them event …
…if one fails (#6) * issue-4. in case many event listeners present call all of them event if one fails * fixed lift issue
- Loading branch information
1 parent
c6c76f4
commit 18672e2
Showing
5 changed files
with
142 additions
and
37 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...g-undo-core/src/main/java/dev/fomenko/springundocore/UndoListenerInvocationException.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,19 @@ | ||
package dev.fomenko.springundocore; | ||
|
||
import lombok.Getter; | ||
|
||
import java.util.Collection; | ||
|
||
public class UndoListenerInvocationException extends RuntimeException { | ||
private final Collection<Throwable> causes; | ||
|
||
|
||
public UndoListenerInvocationException(String msg, Collection<Throwable> causes) { | ||
super(msg, causes.iterator().next()); | ||
this.causes = causes; | ||
} | ||
|
||
public Collection<Throwable> getCauses() { | ||
return causes; | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
spring-undo-core/src/test/java/dev/fomenko/springundocore/dto/TestDtoC.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,12 @@ | ||
package dev.fomenko.springundocore.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class TestDtoC { | ||
private String data; | ||
} |