-
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:Feature Exception for remote depoist and payments
- Loading branch information
sathish Ramesh
committed
Oct 27, 2024
1 parent
5408ec0
commit da4a290
Showing
3 changed files
with
52 additions
and
3 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
25 changes: 25 additions & 0 deletions
25
mdx-models/src/main/java/com/mx/path/model/mdx/accessor/payment/PaymentException.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,25 @@ | ||
package com.mx.path.model.mdx.accessor.payment; | ||
|
||
import com.mx.path.core.common.request.Feature; | ||
import com.mx.path.model.mdx.accessor.feature.ErrorDescriptor; | ||
import com.mx.path.model.mdx.accessor.feature.FeatureException; | ||
|
||
/** | ||
* Exception thrown when there is an error related to payment. | ||
* <p> | ||
* This exception is used for payment-related errors, allowing for specific | ||
* error descriptors to be specified. | ||
* </p> | ||
*/ | ||
public class PaymentException extends FeatureException { | ||
|
||
/** | ||
* Constructs a PaymentException with a specific user message and error descriptor. | ||
* | ||
* @param userMessage The message to be displayed to the user. | ||
* @param errorDescriptor The error descriptor for this exception. | ||
*/ | ||
public PaymentException(String userMessage, ErrorDescriptor errorDescriptor) { | ||
super(userMessage, Feature.PAYMENTS, errorDescriptor); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...s/src/main/java/com/mx/path/model/mdx/accessor/remote_deposit/RemoteDepositException.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,25 @@ | ||
package com.mx.path.model.mdx.accessor.remote_deposit; | ||
|
||
import com.mx.path.core.common.request.Feature; | ||
import com.mx.path.model.mdx.accessor.feature.ErrorDescriptor; | ||
import com.mx.path.model.mdx.accessor.feature.FeatureException; | ||
|
||
/** | ||
* Exception thrown when there is an error related to remote deposit. | ||
* <p> | ||
* This exception is used for remote deposit-related errors, allowing for specific | ||
* error descriptors to be specified. | ||
* </p> | ||
*/ | ||
public class RemoteDepositException extends FeatureException { | ||
|
||
/** | ||
* Constructs a RemoteDepositException with a specific user message and error descriptor. | ||
* | ||
* @param userMessage The message to be displayed to the user. | ||
* @param errorDescriptor The error descriptor for this exception. | ||
*/ | ||
public RemoteDepositException(String userMessage, ErrorDescriptor errorDescriptor) { | ||
super(userMessage, Feature.REMOTE_DEPOSITS, errorDescriptor); | ||
} | ||
} |