- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jline.builtins.Options.HelpException
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Options
public static class Options.HelpException extends Exception
Exception thrown when using the--helpoption on a built-in command. It can be highlighted using thehighlight(String, StyleResolver)method and then printed to theTerminal.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HelpException(String message)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StyleResolverdefaultStyle()static AttributedStringhighlight(String msg, StyleResolver resolver)static AttributedStringhighlightComment(String comment, StyleResolver resolver)static AttributedStringhighlightSyntax(String syntax, StyleResolver resolver)static AttributedStringhighlightSyntax(String syntax, StyleResolver resolver, boolean subcommands)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HelpException
public HelpException(String message)
-
-
Method Detail
-
defaultStyle
public static StyleResolver defaultStyle()
-
highlight
public static AttributedString highlight(String msg, StyleResolver resolver)
-
highlightSyntax
public static AttributedString highlightSyntax(String syntax, StyleResolver resolver, boolean subcommands)
-
highlightSyntax
public static AttributedString highlightSyntax(String syntax, StyleResolver resolver)
-
highlightComment
public static AttributedString highlightComment(String comment, StyleResolver resolver)
-
-