Skip to content

Commit

Permalink
feat:Business logic exception categorized as features
Browse files Browse the repository at this point in the history
  • Loading branch information
sathish Ramesh committed Nov 18, 2024
1 parent 347a360 commit cd145d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* This enum provides a centralized way to manage error descriptors used
* throughout the application. Each constant represents a specific error
* condition that may arise during application operations.
* </p>
* <p>
* Usage:
* <p>
Expand All @@ -14,18 +15,13 @@
* </p>
*/
public enum ErrorDescriptor {
INSUFFICIENT_FUNDS("INSUFFICIENT_FUNDS"),
ACCOUNT_NOT_FOUND("ACCOUNT_NOT_FOUND"),
UNKNOWN_ERROR("UNKNOWN_ERROR");
INSUFFICIENT_FUNDS,
ACCOUNT_NOT_FOUND,
UNKNOWN_ERROR;
// todo: All the expected ErrorDescriptors will be added here.

private final String descriptor;

ErrorDescriptor(String descriptor) {
this.descriptor = descriptor;
}

public String getDescriptor() {
return descriptor;
@Override
public String toString() {
return name();
}
}

This file was deleted.

This file was deleted.

0 comments on commit cd145d8

Please sign in to comment.