Skip to content

Commit

Permalink
Introduced ItemErrorResponse class to handle error responses | Added …
Browse files Browse the repository at this point in the history
…fields: errorCode (int) and errorMessage (String) | Implemented Serializable interface for potential future serialization needs
  • Loading branch information
sasmithx committed Oct 7, 2024
1 parent b178db8 commit 6a83603
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
@NoArgsConstructor
@Data
public class CustomerErrorResponse implements CustomerResponse, Serializable {
private int errorcode;
private int errorCode;
private String errorMessage;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package lk.ijse.springpos.customObj;

import java.io.Serializable;

public class ItemErrorResponse implements ItemResponse, Serializable {
private int errorCode;
private String errorMessage;
}
4 changes: 4 additions & 0 deletions src/main/java/lk/ijse/springpos/customObj/ItemResponse.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package lk.ijse.springpos.customObj;

public interface ItemResponse {
}

0 comments on commit 6a83603

Please sign in to comment.