package com.github.blindpirate.gogradle.util;

import java.io.PrintWriter;
import java.io.StringWriter;

public class ExceptionHandler {
    public static RuntimeException uncheckException(Throwable e) {
        return new IllegalStateException(e);
    }

    public static String getStackTrace(Throwable e) {
        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw);
        e.printStackTrace(pw);
        return sw.toString();
    }
}

@@ -130,16 +130,174 @@
 ndler %7B%0A
+    public static class UncheckedException extends RuntimeException %7B%0A        public UncheckedException(Throwable e) %7B%0A            super(e);%0A        %7D%0A    %7D%0A%0A
     publ
@@ -378,20 +378,17 @@
 new 
-IllegalState
+Unchecked
 Exce

Throw exceptions with type UncheckedException