org.gridkit.jvmtool.spi.parsers.ParserErrorPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sjk-stacktrace Show documentation
Show all versions of sjk-stacktrace Show documentation
Thread dumps: capture and encoding
The newest version!
package org.gridkit.jvmtool.spi.parsers;
public interface ParserErrorPolicy {
enum Action {
ABORT,
CONTINUE
}
public Action onParserError(Exception e, String niceMessage);
/**
* Mixin interface for setting up {@link ParserErrorPolicy}
*
* @author Alexey Ragozin ([email protected])
*/
public interface Aware {
void setParserErrorPolicy(ParserErrorPolicy policy);
}
}