forked from avni-bahmni-integration/integration-service
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#96 - introduced three different checked exceptions meant for handled…
… by callers of integration process. removed unmapped fields. metadata data mapping.
- Loading branch information
1 parent
07e1b3a
commit 681a91c
Showing
14 changed files
with
109 additions
and
102 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
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
10 changes: 10 additions & 0 deletions
10
...mmon/src/main/java/org/avni_integration_service/common/MessageUnprocessableException.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,10 @@ | ||
package org.avni_integration_service.common; | ||
|
||
/** | ||
* Use this exception to indicate that the current message cannot be processed due to problems with this message | ||
*/ | ||
public class MessageUnprocessableException extends Exception { | ||
public MessageUnprocessableException(String message) { | ||
super(message); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
integration-common/src/main/java/org/avni_integration_service/common/PlatformException.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,14 @@ | ||
package org.avni_integration_service.common; | ||
|
||
/** | ||
* Use this exception to indicate that integration service module cannot process any messages due to problems in configuration of integration service, integration system, or avni. | ||
*/ | ||
public class PlatformException extends Exception { | ||
public PlatformException(String message) { | ||
super(message); | ||
} | ||
|
||
public PlatformException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
integration-common/src/main/java/org/avni_integration_service/common/UnknownException.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,10 @@ | ||
package org.avni_integration_service.common; | ||
|
||
/** | ||
* Use this to indicate the source of problem in processing is unknown | ||
*/ | ||
public class UnknownException extends Exception { | ||
public UnknownException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
...java/org/avni_integration_service/integration_data/domain/framework/MappingException.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 |
---|---|---|
@@ -1,22 +1,7 @@ | ||
package org.avni_integration_service.integration_data.domain.framework; | ||
|
||
public class MappingException extends RuntimeException { | ||
public MappingException() { | ||
} | ||
|
||
public MappingException(String message) { | ||
super(message); | ||
} | ||
|
||
public MappingException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public MappingException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public MappingException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
} |
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
40 changes: 0 additions & 40 deletions
40
lahi/src/main/java/org/avni_integration_service/lahi/domain/StudentValidator.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.