@JRubyMethod public IRubyObject backtrace() { IRubyObject bt = getBacktrace(); return bt; }
@JRubyMethod public IRubyObject backtrace() { return getBacktrace(); }
@JRubyMethod public IRubyObject backtrace() { IRubyObject bt = getBacktrace(); return bt; }
@JRubyMethod public IRubyObject backtrace() { return getBacktrace(); }
@Override public List<Variable<Object>> getVariableList() { List<Variable<Object>> attrs = super.getVariableList(); attrs.add(new VariableEntry<>("mesg", getMessage())); IRubyObject backtrace = getBacktrace(); attrs.add(new VariableEntry<>("bt", backtrace)); return attrs; }
@Override public List<Variable<Object>> getVariableList() { List<Variable<Object>> attrs = super.getVariableList(); attrs.add(new VariableEntry<>("mesg", getMessage())); IRubyObject backtrace = getBacktrace(); attrs.add(new VariableEntry<>("bt", backtrace)); return attrs; }
@Override public void marshalTo(Ruby runtime, Object obj, RubyClass type, MarshalStream marshalStream) throws IOException { RubyException exc = (RubyException)obj; marshalStream.registerLinkTarget(exc); List<Variable<Object>> attrs = exc.getVariableList(); attrs.add(new VariableEntry<Object>("mesg", exc.getMessage())); attrs.add(new VariableEntry<Object>("bt", exc.getBacktrace())); marshalStream.dumpVariables(attrs); }
public void marshalTo(Ruby runtime, Object obj, RubyClass type, MarshalStream marshalStream) throws IOException { RubyException exc = (RubyException)obj; marshalStream.registerLinkTarget(exc); List<Variable<Object>> attrs = exc.getVariableList(); attrs.add(new VariableEntry<Object>( "mesg", exc.message == null ? runtime.getNil() : exc.message)); attrs.add(new VariableEntry<Object>("bt", exc.getBacktrace())); marshalStream.dumpVariables(attrs); }
@Override public void marshalTo(Ruby runtime, Object obj, RubyClass type, MarshalStream marshalStream) throws IOException { RubyException exc = (RubyException)obj; marshalStream.registerLinkTarget(exc); List<Variable<Object>> attrs = exc.getVariableList(); attrs.add(new VariableEntry<Object>("mesg", exc.getMessage())); attrs.add(new VariableEntry<Object>("bt", exc.getBacktrace())); marshalStream.dumpVariables(attrs); }
public void marshalTo(Ruby runtime, Object obj, RubyClass type, MarshalStream marshalStream) throws IOException { RubyException exc = (RubyException)obj; marshalStream.registerLinkTarget(exc); List<Variable<Object>> attrs = exc.getVariableList(); attrs.add(new VariableEntry<Object>( "mesg", exc.message == null ? runtime.getNil() : exc.message)); attrs.add(new VariableEntry<Object>("bt", exc.getBacktrace())); marshalStream.dumpVariables(attrs); }