All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.requirementsascode.exception.NestedCallOfReactTo Maven / Gradle / Ivy

There is a newer version: 2.0
Show newest version
package org.requirementsascode.exception;

public class NestedCallOfReactTo extends RuntimeException{
  private static final long serialVersionUID = 4979548355692063295L;
  
  public NestedCallOfReactTo() {
    super(exceptionMessage());
  }

  private static String exceptionMessage() {
    String message = "Don't call modelRunner.reactTo(x) from a message handler (i.e. from a method specified in system(..)). Use systemPublish() and return x from the specified message.";
    return message;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy