diff options
| author | Ben Culkin <scorpress@gmail.com> | 2022-09-16 18:58:48 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2022-09-16 18:58:48 -0400 |
| commit | a3d2728f84375566da3da560b3faad018d34005d (patch) | |
| tree | d50829207b8b4418c11d6385f49386259bb2cc8a /base/src/main/java/bjc/utils/ioutils/DuplicateKeys.java | |
| parent | 6186f1d87c5e170fa89aa327001706b0692526fc (diff) | |
Cleanup
Diffstat (limited to 'base/src/main/java/bjc/utils/ioutils/DuplicateKeys.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/ioutils/DuplicateKeys.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/base/src/main/java/bjc/utils/ioutils/DuplicateKeys.java b/base/src/main/java/bjc/utils/ioutils/DuplicateKeys.java new file mode 100644 index 0000000..604cc69 --- /dev/null +++ b/base/src/main/java/bjc/utils/ioutils/DuplicateKeys.java @@ -0,0 +1,21 @@ +package bjc.utils.ioutils; + +/** + * Exception thrown when there is a duplicate key, when they are forbidden. + * + * @author 15405 + * + */ +public class DuplicateKeys extends RuntimeException { + private static final long serialVersionUID = -5521190136366024804L; + + /** + * Create a new duplicate key exception. + * + * @param keyName + * The name of the key that has been duplicated. + */ + public DuplicateKeys(String keyName) { + super(String.format("Duplicate value encountered for key '%s'", keyName)); + } +}
\ No newline at end of file |
