mobius-rx2/src/main/java/com/spotify/mobius/rx2/EffectHandlerException.java [28:45]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
class EffectHandlerException extends ConnectionException {

  private EffectHandlerException(Throwable throwable) {
    super("Error in effect handler", throwable);
  }

  public static EffectHandlerException in(Object effectHandler, Throwable cause) {
    EffectHandlerException e = new EffectHandlerException(cause);

    final StackTraceElement[] stackTrace = e.getStackTrace();

    // add a synthetic StackTraceElement so that the effect handler class name will be reported in
    // the exception. This helps troubleshooting where the issue originated from.
    stackTrace[0] = new StackTraceElement(effectHandler.getClass().getName(), "apply", null, -1);

    e.setStackTrace(stackTrace);

    return e;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



mobius-rx3/src/main/java/com/spotify/mobius/rx3/EffectHandlerException.java [28:44]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
class EffectHandlerException extends ConnectionException {

  private EffectHandlerException(Throwable throwable) {
    super("Error in effect handler", throwable);
  }

  public static EffectHandlerException in(Object effectHandler, Throwable cause) {
    EffectHandlerException e = new EffectHandlerException(cause);

    final StackTraceElement[] stackTrace = e.getStackTrace();

    // add a synthetic StackTraceElement so that the effect handler class name will be reported in
    // the exception. This helps troubleshooting where the issue originated from.
    stackTrace[0] = new StackTraceElement(effectHandler.getClass().getName(), "apply", null, -1);

    e.setStackTrace(stackTrace);
    return e;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



