Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /* |
||
27 | public class PathValidationException extends Exception { |
||
28 | private final Object errorPacket; |
||
|
|||
29 | |||
30 | public PathValidationException(Object errorPacket) { |
||
31 | 1 | super(); |
|
32 | |||
33 | 1 | this.errorPacket = errorPacket; |
|
34 | 1 | } |
|
35 | |||
36 | /** |
||
37 | * Get the error to send |
||
38 | */ |
||
39 | public Optional<Object> errorPacket() { |
||
40 | 1 | return Optional.ofNullable(errorPacket); |
|
41 | } |
||
43 |