com.appland.appmap.process.ExitEarly Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appmap-agent Show documentation
Show all versions of appmap-agent Show documentation
Inspect and record the execution of Java for use with App Land
package com.appland.appmap.process;
/**
* Throwing this exception within an invocation hook will skip further execution of the hooked
* method, instead causing it to return the value passed to the exception.
*/
public class ExitEarly extends RuntimeException {
private Object returnValue;
public ExitEarly() {
super();
}
public ExitEarly(Object returnValue) {
super();
this.returnValue = returnValue;
}
public Object getReturnValue() {
return this.returnValue;
}
}