net.lenni0451.lambdaevents.utils.EventException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of LambdaEvents Show documentation
Show all versions of LambdaEvents Show documentation
Fast and modular event library for Java
The newest version!
package net.lenni0451.lambdaevents.utils;
/**
* A util exception class to print event handler exceptions.
* The stacktrace is removed to prevent spamming the console.
*/
public class EventException extends Exception {
public EventException(final String message, final Throwable cause) {
super(message, cause);
}
@Override
public synchronized Throwable fillInStackTrace() {
return this;
}
@Override
public StackTraceElement[] getStackTrace() {
return new StackTraceElement[0];
}
}