use of org.jruby.exceptions.RaiseException in project cuke4duke by cucumber.
the class JRubyExceptionFactory method error.
public Exception error(String errorClass, String message) {
RubyModule cucumber = JRuby.getRuntime().getModule("Cucumber");
RubyClass error = cucumber.getClass(errorClass);
return new RaiseException(JRuby.getRuntime(), error, message, true);
}
Aggregations