Revert "poor man Nothing"

This reverts commit e113294185.
This commit is contained in:
Stepan Koltsov
2012-06-14 17:27:40 +04:00
parent a46bd18103
commit b279ce7f9e
@@ -23,15 +23,10 @@ import java.io.Closeable;
*/
public class ExceptionUtils {
public static class Nothing extends Error {
private Nothing() {
}
}
/**
* Translate exception to unchecked exception.
*/
public static Nothing rethrow(Throwable e) {
public static RuntimeException rethrow(Throwable e) {
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
}