Tighten en exception

This commit is contained in:
jvoisin
2019-10-24 21:42:50 +02:00
parent e1a8a3b752
commit d07d0ad687
@@ -19,6 +19,7 @@
*/ */
package org.airsonic.player.util; package org.airsonic.player.util;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Hex; import org.apache.commons.codec.binary.Hex;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
@@ -321,9 +322,9 @@ public final class StringUtil {
* *
* @param s The string to decode. * @param s The string to decode.
* @return The decoded string. * @return The decoded string.
* @throws Exception If an error occurs. * @throws DecoderException If an error occurs.
*/ */
public static String utf8HexDecode(String s) throws Exception { public static String utf8HexDecode(String s) throws DecoderException {
if (s == null) { if (s == null) {
return null; return null;
} }