Code example for UnsupportedEncodingException

Methods: getMessage, printStackTrace

0
            this.key = key;
            try { 
                this.value = URLEncoder.encode(value, "utf-8");
            } 
            catch( UnsupportedEncodingException e ) {
                logger.error("UTF-8 unsupported: " + e.getMessage());
                e.printStackTrace();
                throw new InternalException(e);
            } 
        } 
 
        public @Nonnull String getKey() {
            return key;
        } 
 
        public @Nonnull String getValue() {
            return value;
        } 
    } 
 
    static public final String IMAGE_DELETE      = "/api/grid/image/delete";