software.amazon.jsii.JsiiException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsii-runtime Show documentation
Show all versions of jsii-runtime Show documentation
Java client for jsii runtime
package software.amazon.jsii;
/*
* An error raised by the jsii runtime.
*/
public abstract class JsiiException extends RuntimeException {
public static final long serialVersionUID = 1L;
static enum Type {
JSII_FAULT("@jsii/kernel.Fault"),
RUNTIME_ERROR("@jsii/kernel.RuntimeError");
private final String errorType;
Type(String str) {
this.errorType = str;
}
public String toString() {
return this.errorType;
}
}
/**
* Creates an exception.
* @param message The error message
*/
JsiiException(final String message) {
super(message);
}
/**
* Creates an exception.
* @param e The error that caused this exception
*/
JsiiException(final Throwable e) {
super(e);
}
/**
* Creates an exception.
* @param message The error message
* @param e The error that caused this exception
*/
JsiiException(final String message, final Throwable e) {
super(message, e);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy