Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions core/src/main/java/org/jruby/exceptions/RaiseException.java
Original file line number Diff line number Diff line change
@@ -52,7 +52,6 @@
import org.jruby.runtime.builtin.IRubyObject;

public class RaiseException extends JumpException {
public static final boolean DEBUG = false;
private static final long serialVersionUID = -7612079169559973951L;

private RubyException exception;
@@ -84,9 +83,6 @@ public RaiseException(RubyException actException) {
*/
public RaiseException(RubyException exception, IRubyObject backtrace) {
super(exception.getMessageAsJavaString());
if (DEBUG) {
Thread.dumpStack();
}
setException(exception, false);
preRaise(exception.getRuntime().getCurrentContext(), backtrace);
}
@@ -98,9 +94,6 @@ public RaiseException(Ruby runtime, RubyClass excptnClass, String msg, boolean n
}
providedMessage = '(' + excptnClass.getName() + ") " + msg;
this.nativeException = nativeException;
if (DEBUG) {
Thread.dumpStack();
}
final ThreadContext context = runtime.getCurrentContext();
setException((RubyException) Helpers.invoke(
context,
@@ -118,9 +111,6 @@ public RaiseException(Ruby runtime, RubyClass excptnClass, String msg, IRubyObje
}
providedMessage = '(' + excptnClass.getName() + ") " + msg;
this.nativeException = nativeException;
if (DEBUG) {
Thread.dumpStack();
}
final ThreadContext context = runtime.getCurrentContext();
setException((RubyException) Helpers.invoke(
context,
@@ -133,9 +123,6 @@ public RaiseException(Ruby runtime, RubyClass excptnClass, String msg, IRubyObje

public RaiseException(RubyException exception, boolean nativeException) {
super(exception.getMessageAsJavaString());
if (DEBUG) {
Thread.dumpStack();
}
this.nativeException = nativeException;
setException(exception, nativeException);
preRaise(exception.getRuntime().getCurrentContext());

0 comments on commit b6a4df9

Please sign in to comment.