-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:Business logic exception categorized as features
- Loading branch information
sathish Ramesh
committed
Nov 18, 2024
1 parent
43596ab
commit 347a360
Showing
3 changed files
with
25 additions
and
34 deletions.
There are no files selected for viewing
31 changes: 0 additions & 31 deletions
31
mdx-models/src/main/java/com/mx/path/model/mdx/accessor/feature/Feature.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
mdx-models/src/main/java/com/mx/path/model/mdx/accessor/feature/FeatureMapper.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,20 @@ | ||
package com.mx.path.model.mdx.accessor.feature; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import com.mx.path.core.common.request.Feature; | ||
|
||
public class FeatureMapper { | ||
|
||
private static final Map<Feature, String> FEATURE_NAMES = new HashMap<>(); | ||
|
||
static { | ||
FEATURE_NAMES.put(Feature.TRANSFERS, "transfers"); | ||
FEATURE_NAMES.put(Feature.REMOTE_DEPOSITS, "remote_deposits"); | ||
} | ||
|
||
public static String getFeatureName(Feature feature) { | ||
return FEATURE_NAMES.get(feature); | ||
} | ||
} |
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