convex.core.exceptions.BaseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-core Show documentation
Show all versions of convex-core Show documentation
Convex core libraries and common utilities
The newest version!
package convex.core.exceptions;
/**
* Abstract base class for exceptions that we expect to encounter and need to
* handle.
*
* "If you don’t handle [exceptions], we shut your application down. That
* dramatically increases the reliability of the system.” - Anders Hejlsberg
*
*/
@SuppressWarnings("serial")
public abstract class BaseException extends Exception {
public BaseException(String message) {
super(message);
}
public BaseException(String message, Throwable cause) {
super(message, cause);
}
@Override
public Throwable fillInStackTrace() {
return super.fillInStackTrace();
// return this; // possible optimisation??
}
}