public final class UserFault extends RuntimeException
Modifier and Type | Field and Description |
---|---|
String |
exception |
Boolean |
fatal |
String |
msg |
String |
trace |
Constructor and Description |
---|
UserFault(String msg,
String exception,
String trace) |
UserFault(String msg,
String exception,
String trace,
Boolean fatal) |
Modifier and Type | Method and Description |
---|---|
static <T extends Throwable> |
filterStackTrace(T t)
remove our runtime code from the stack trace recursively.
|
static UserFault |
makeUserFault(String msg)
Convenience function to report a fault given a message.
|
static UserFault |
makeUserFault(Throwable t)
Convenience function to report a fault given an exception.
|
static UserFault |
makeUserFault(Throwable t,
boolean fatal) |
String |
reportableError() |
static String |
trace(Throwable t)
Convert a throwable's stack trace to a String
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public final String msg
public final String exception
public final String trace
public final Boolean fatal
public static UserFault makeUserFault(Throwable t)
public static UserFault makeUserFault(String msg)
public static <T extends Throwable> T filterStackTrace(T t)
public String reportableError()
Copyright © 2022. All rights reserved.