Skip to content

Commit 9296ed0

Browse files
committed
Improved Unicode handling of Unicode pattern and throwing IllegalArgumentException for incorrect syntax
1 parent ebd2dbd commit 9296ed0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/mapcode/UnknownMapcodeException.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
* ----------------------------------------------------------------------------------------------
2525
*
2626
* This exception is thrown for invalid mapcodes (which have the right syntax, are correctly formatted).
27+
*
28+
* Note that for syntactically incorrect mapcodes, normally {@link java.lang.IllegalArgumentException}s are thrown,
29+
* not {@link com.mapcode.UnknownMapcodeException}.
2730
*/
2831
public final class UnknownMapcodeException extends Exception {
2932
private static final long serialVersionUID = 1L;

0 commit comments

Comments
 (0)