isIgnoring(IMessage.Kind)
to avoid construction if the message will be ignored.
Clients passing messages to an IMessageHandler should not
interfere with aborts by catching AbortException unless
otherwise required by their logic or the message handler.
| Modifier and Type | Field and Description |
|---|---|
| public static final IMessageHandler | SYSTEM_ERR
print all to System.err and throw AbortException on failure or abort messages |
| public static final IMessageHandler | SYSTEM_OUT
print all to System.out but do not throw AbortException on failure or abort messages |
| public static final IMessageHandler | THROW
Throw exceptions for anything with ERROR or greater severity |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true if this message was handled by this handlerthe IMessage to handle - never null message)Handle message, by reporting and/or throwing an AbortException. |
| public void | |
| public boolean | Returns: true if this handler is ignoring all messages of this typeSignal clients whether this will ignore messages of a given type. |
| SYSTEM_ERR | back to summary |
|---|---|
| public static final IMessageHandler SYSTEM_ERR print all to System.err and throw AbortException on failure or abort messages | |
| SYSTEM_OUT | back to summary |
|---|---|
| public static final IMessageHandler SYSTEM_OUT print all to System.out but do not throw AbortException on failure or abort messages | |
| THROW | back to summary |
|---|---|
| public static final IMessageHandler THROW Throw exceptions for anything with ERROR or greater severity | |
| dontIgnore | back to summary |
|---|---|
| public void dontIgnore(IMessage. Allow fine grained configuration after initialization. Minaly used in LTW. Most of the implementation can have this method be a no-op. | |
| handleMessage | back to summary |
|---|---|
| public boolean handleMessage(IMessage message) throws AbortException Handle message, by reporting and/or throwing an AbortException.
| |
| ignore | back to summary |
|---|---|
| public void ignore(IMessage. Allow fine grained configuration after initialization. | |
| isIgnoring | back to summary |
|---|---|
| public boolean isIgnoring(IMessage. Signal clients whether this will ignore messages of a given type. Clients may use this to avoid constructing or sending certain messages.
| |