private static final TagValue createTagValue ( TagKey key , String value ) throws TagContextDeserializationException { try { return TagValue . create ( value ) ; } catch ( IllegalArgumentException e ) { throw new TagContextDeserializationException ( "Invalid tag value for key " + key + ": " + value , e ) ; } }
an IllegalArgumentException here .