de.caff.util.debug

## Class DebugMessageCook.ListenerData

- java.lang.Object
- - de.caff.util.debug.DebugMessageCook.ListenerData

- Enclosing class:
    DebugMessageCook

      static class DebugMessageCook.ListenerData
      extends java.lang.Object

  Data collection for listener.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) CookedMessageDebugListener` | `listener`
    `(package private) boolean` | `stopOnFatalErrors`
    `(package private) boolean` | `throwAssertionException`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ListenerData(CookedMessageDebugListener listener, boolean stopOnFatalErrors, boolean throwAssertionException)` Construtor.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### listener

          final CookedMessageDebugListener listener

    - #### stopOnFatalErrors

          final boolean stopOnFatalErrors

    - #### throwAssertionException

          final boolean throwAssertionException

  - ### Constructor Detail

    - #### ListenerData

          ListenerData(@NotNull
                       CookedMessageDebugListener listener,
                       boolean stopOnFatalErrors,
                       boolean throwAssertionException)

      Construtor. Allows to set what happens to fatal errors and failed assertions.
      Parameters:
        `listener` - the listener waiting to be served by this cook
        `stopOnFatalErrors` - stop program on fatal errors?
        `throwAssertionException` - throw exception on failed assertions?
      Throws:
        `java.lang.NullPointerException` - if the listener is not set