com.deliveredtechnologies.rulebook.model.RuleException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rulebook-core Show documentation
Show all versions of rulebook-core Show documentation
A simple and intuitive rules abstraction for Java
package com.deliveredtechnologies.rulebook.model;
/**
* Runtime exception to wrap Rule exceptions.
* This exception exists for two reasons:
*
* - It denotes that the exception happened in a Rule.
* - It allows exceptions to be thrown from a Rule without changing the interface.
*
*/
public class RuleException extends RuntimeException {
/**
* Create a RuleException with an exception message.
* @param message exception message
*/
public RuleException(String message) {
super(message);
}
/**
* Create a RuleException with an exception message and a cause (the originating Throwable exception).
* @param message exception message
* @param cause the originating Throwable exception
*/
public RuleException(String message, Throwable cause) {
super(message, cause);
}
/**
* Create a RuleException using the originating Throwable exception.
* @param cause the originating Throwable exception
*/
public RuleException(Throwable cause) {
super(cause);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy