Open ar opened 1 year ago
Apache commons-codec for example throws a checked DecoderException https://github.com/apache/commons-codec/blob/master/src/main/java/org/apache/commons/codec/binary/Hex.java#L73
Should jpos hex2byte throw? Should it be a checked or an unchecked exception?
I'd go for a checked exception if breaking backward compatibility is not an issue. If not maybe an unchecked IllegalArgumentException
ditto