Skip to content

Commit 50c2f22

Browse files
committed
fix: add EdaException and unified exception hierarchy
- Add EdaException extending FireflyInfrastructureException - Add fireflyframework-kernel dependency
1 parent 036870b commit 50c2f22

3 files changed

Lines changed: 55 additions & 1 deletion

File tree

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
<description>Unified Event-Driven Architecture library providing standardized messaging abstractions and implementations</description>
1616

1717
<dependencies>
18+
<!-- Firefly Kernel (exception hierarchy, shared abstractions) -->
19+
<dependency>
20+
<groupId>org.fireflyframework</groupId>
21+
<artifactId>fireflyframework-kernel</artifactId>
22+
<version>${project.version}</version>
23+
</dependency>
24+
1825
<!-- Spring Boot -->
1926
<dependency>
2027
<groupId>org.springframework.boot</groupId>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright 2024-2026 Firefly Software Solutions Inc
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.fireflyframework.eda.exception;
18+
19+
import org.fireflyframework.kernel.exception.FireflyInfrastructureException;
20+
21+
/**
22+
* Base exception for all EDA (Event-Driven Architecture) related errors.
23+
*/
24+
public class EdaException extends FireflyInfrastructureException {
25+
26+
public EdaException(String message) {
27+
super(message);
28+
}
29+
30+
public EdaException(Throwable cause) {
31+
super(cause);
32+
}
33+
34+
public EdaException(String message, Throwable cause) {
35+
super(message, cause);
36+
}
37+
38+
public EdaException(String message, String errorCode) {
39+
super(message, errorCode);
40+
}
41+
42+
public EdaException(String message, String errorCode, Throwable cause) {
43+
super(message, errorCode, cause);
44+
}
45+
}

src/main/java/org/fireflyframework/eda/serialization/SerializationException.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616

1717
package org.fireflyframework.eda.serialization;
1818

19+
import org.fireflyframework.eda.exception.EdaException;
20+
1921
/**
2022
* Exception thrown when serialization fails.
2123
*/
22-
public class SerializationException extends Exception {
24+
public class SerializationException extends EdaException {
2325

2426
public SerializationException(String message) {
2527
super(message);

0 commit comments

Comments
 (0)