All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.infinicast.NotImplementedException Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package io.infinicast;

public class NotImplementedException extends RuntimeException {
    public NotImplementedException() {
    }

    public NotImplementedException(String msg) {
        super(msg);
    }

    public String stackTraceToString(Throwable e) {
        StringBuilder sb = new StringBuilder();
        for (StackTraceElement element : e.getStackTrace()) {
            sb.append(element.toString());
            sb.append("\n");
        }
        return sb.toString();
    }

    @Override
    public String toString() {
        String result = "NotImplementedException with message: " + this.getMessage() + " with stacktrace: ";
        result += this.stackTraceToString(this);

        return result;
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy