| 1 |
package com.paymentlink.exception; |
| 2 |
|
| 3 |
public class RegionBlockedException extends RuntimeException { |
| 4 |
|
| 5 |
private final String countryCode; |
| 6 |
private final String countryName; |
| 7 |
|
| 8 |
public RegionBlockedException(String countryCode, String countryName) { |
| 9 |
super("Access denied for region: " + countryName + " (" + countryCode + ")"); |
| 10 |
this.countryCode = countryCode; |
| 11 |
this.countryName = countryName; |
| 12 |
} |
| 13 |
|
| 14 |
public String getCountryCode() { |
| 15 |
return countryCode; |
| 16 |
} |
| 17 |
|
| 18 |
public String getCountryName() { |
| 19 |
return countryName; |
| 20 |
} |
| 21 |
} |
| 22 |
|