forked from mosip/pre-registration
-
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.
Signed-off-by: JanardhanBS-SyncByte <[email protected]>
- Loading branch information
1 parent
659f3c8
commit 7f2cb15
Showing
110 changed files
with
3,460 additions
and
2,089 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
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
44 changes: 33 additions & 11 deletions
44
...ce/src/main/java/io/mosip/preregistration/application/exception/AppointmentExecption.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,25 +1,47 @@ | ||
package io.mosip.preregistration.application.exception; | ||
|
||
import java.util.Objects; | ||
|
||
import io.mosip.kernel.core.exception.BaseUncheckedException; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = false) | ||
public class AppointmentExecption extends BaseUncheckedException { | ||
|
||
public AppointmentExecption(String errorCode, String message) { | ||
this.errorCode = errorCode; | ||
this.errorMessage = message; | ||
} | ||
/** The Constant serialVersionUID. */ | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* | ||
* The error code associated with the audit failure. | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
|
||
private String errorCode; | ||
|
||
/** | ||
* A descriptive message explaining the reason for the audit failure. | ||
*/ | ||
private String errorMessage; | ||
|
||
} | ||
public AppointmentExecption(String errorCode, String message) { | ||
super(); | ||
this.errorCode = errorCode; | ||
this.errorMessage = message; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
super.equals(obj); | ||
if (this == obj) | ||
return true; | ||
if (obj == null) | ||
return false; | ||
if (getClass() != obj.getClass()) | ||
return false; | ||
AppointmentExecption other = (AppointmentExecption) obj; | ||
return Objects.equals(errorCode, other.errorCode) && Objects.equals(errorMessage, other.errorMessage); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
super.hashCode(); | ||
return Objects.hash(errorCode, errorMessage); | ||
} | ||
} |
52 changes: 34 additions & 18 deletions
52
...ce/src/main/java/io/mosip/preregistration/application/exception/AuditFailedException.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,28 +1,44 @@ | ||
package io.mosip.preregistration.application.exception; | ||
|
||
import io.mosip.kernel.core.exception.BaseUncheckedException; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.Data; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
/** | ||
* The AuditFailedException class represents an exception that occurs | ||
* when audit fails. | ||
* | ||
* | ||
* @author Tapaswini Behera | ||
* @since 1.0.0 | ||
* | ||
*/ | ||
|
||
@Data | ||
public class AuditFailedException extends BaseUncheckedException { | ||
/** The Constant serialVersionUID. */ | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* | ||
* The error code associated with the audit failure. | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
|
||
private String errorCode; | ||
|
||
private String errorMessage; | ||
private final String errorCode; | ||
|
||
|
||
|
||
|
||
|
||
|
||
/** | ||
* A descriptive message explaining the reason for the audit failure. | ||
*/ | ||
private final String errorMessage; | ||
|
||
} | ||
/** | ||
* Constructs a new AuditFailedException with the specified error code and | ||
* message. | ||
* | ||
* @param errorCode The error code associated with the audit failure. | ||
* @param errorMessage A descriptive message explaining the reason for the audit | ||
* failure. | ||
*/ | ||
public AuditFailedException(String errorCode, String errorMessage) { | ||
super(); | ||
this.errorCode = errorCode; | ||
this.errorMessage = errorMessage; | ||
} | ||
} |
Oops, something went wrong.