Package org.tomitribe.crest.cmds
Class HelpPrintedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.tomitribe.crest.cmds.HelpPrintedException
-
- All Implemented Interfaces:
java.io.Serializable
public class HelpPrintedException extends java.lang.IllegalArgumentExceptionWe have a slightly unintuitive error handling scheme (my bad) that prints help early and then suppresses printing error messages and stacktraces in exception handling later in the call stack. The intention is that the message has already been printed along with full help output, so don't print the message again later. Unfortunately, it results in some valid exceptions never being printed and Crest silently failing with no help or output of any kind. The creation of this class is an attempt to make it explicit when we have in fact printed help eagerly. The exception type that implied this before was IllegalStateException, which is unfortunately very common in the vm and was getting thrown outside our handling and suppressed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HelpPrintedException(java.lang.Throwable throwable)
-