Minor exception handling refactoring

This commit is contained in:
Pablo Fernandez committed 2011-01-09 16:10:00 -03:00
1 parent 1f36fd0f32
commit 1f055d7eeb
2 files changed
+3 -5

No files matched your search

+2 -4
View File
@@ -4,8 +4,6 @@ import java.io.*;
import java.net.*;
import java.util.*;
import org.scribe.exceptions.*;
/**
* Utils to deal with URL and url-encodings
*
@@ -78,7 +76,7 @@ public class URLUtils
}
catch (UnsupportedEncodingException uee)
{
throw new OAuthException(ERROR_MSG, uee);
throw new IllegalStateException(ERROR_MSG, uee);
}
}
@@ -97,7 +95,7 @@ public class URLUtils
}
catch (UnsupportedEncodingException uee)
{
throw new OAuthException(ERROR_MSG, uee);
throw new IllegalStateException(ERROR_MSG, uee);
}
}