Class UserFault

    • Field Detail

      • msg

        public final String msg
      • exception

        public final String exception
      • trace

        public final String trace
      • fatal

        public final Boolean fatal
    • 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.
      • trace

        public static String trace​(Throwable t)
        Convert a throwable's stack trace to a String
      • 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()