Class ScopedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ScopedException
    extends java.lang.RuntimeException
    An exception that contains scope information.
    See Also:
    Serialized Form
    • Constructor Detail

      • ScopedException

        public ScopedException​(java.lang.String message,
                               java.lang.Object... args)
      • ScopedException

        public ScopedException​(@Nullable
                               java.lang.Throwable cause,
                               java.lang.String message,
                               java.lang.Object... args)
    • Method Detail

      • getBareMessage

        public java.lang.String getBareMessage()
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • createHumanReadableMessage

        public java.lang.String createHumanReadableMessage()
      • isValid

        public boolean isValid()
      • extractErrors

        public static java.util.List<ScopedException> extractErrors​(java.lang.String output)
        Given encoded output generated by getMessage(), extract out the list of ScopedExceptions contained within.
      • encodeOutput

        public static void encodeOutput​(boolean encodeOutput)
      • isEncodeOutput

        public static boolean isEncodeOutput()