Skip to content

Commit

Permalink
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions core/src/main/java/org/jruby/exceptions/RaiseException.java
Original file line number Diff line number Diff line change
@@ -185,6 +185,11 @@ public RaiseException(RubyException exception) {
this(exception.getMessageAsJavaString(), exception);
}

@Deprecated
public RaiseException(RubyException exception, boolean unused) {
this(exception.getMessageAsJavaString(), exception);
}

@Deprecated
public RaiseException(RubyException exception, IRubyObject backtrace) {
this(exception.getMessageAsJavaString(), exception);
@@ -196,6 +201,11 @@ public RaiseException(Ruby runtime, RubyClass excptnClass, String msg) {
this(runtime, excptnClass, msg, null);
}

@Deprecated
public RaiseException(Ruby runtime, RubyClass excptnClass, String msg, boolean unused) {
this(runtime, excptnClass, msg, null);
}

@Deprecated
public RaiseException(Ruby runtime, RubyClass excptnClass, String msg, IRubyObject backtrace) {
super(msg == null ? msg = "No message available" : msg);
@@ -211,4 +221,13 @@ public RaiseException(Ruby runtime, RubyClass excptnClass, String msg, IRubyObje
preRaise(context, backtrace);
}

@Deprecated
public RaiseException(Ruby runtime, RubyClass excptnClass, String msg, IRubyObject backtrace, boolean unused) {
this(runtime, excptnClass, msg, backtrace);
}

@Deprecated
protected final void setException(RubyException newException, boolean unused) {
this.exception = newException;
}
}

0 comments on commit 97117c1

Please sign in to comment.