Class UserFault
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.amazonaws.services.lambda.runtime.api.client.UserFault
-
- All Implemented Interfaces:
Serializable
public final class UserFault extends RuntimeException
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends Throwable>
TfilterStackTrace(T t)remove our runtime code from the stack trace recursively.static UserFaultmakeUserFault(String msg)Convenience function to report a fault given a message.static UserFaultmakeUserFault(Throwable t)Convenience function to report a fault given an exception.static UserFaultmakeUserFault(Throwable t, boolean fatal)StringreportableError()static Stringtrace(Throwable t)Convert a throwable's stack trace to a String-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
makeUserFault
public static UserFault makeUserFault(Throwable t)
Convenience function to report a fault given an exception. The constructed fault is marked non-fatal. No more user code should run after a fault.
-
makeUserFault
public static UserFault makeUserFault(String msg)
Convenience function to report a fault given a message. No more user code should run after a fault.
-
filterStackTrace
public static <T extends Throwable> T filterStackTrace(T t)
remove our runtime code from the stack trace recursively. Returns the same object for convenience.
-
reportableError
public String reportableError()
-
-