@Override public String toString() { return "LocalJumpError:" + getType(); } }
@Override public String toString() { return "LocalJumpError:" + getType(); } }
public RuntimeException getException(Ruby runtime) { switch (getType()) { case NEXT: return runtime.newLocalJumpError(getType(), null, "unexpected next"); case BREAK: return runtime.newLocalJumpError(getType(), null, "unexpected break"); case RETURN: return runtime.newLocalJumpError(getType(), null, "unexpected return"); case REDO: return runtime.newLocalJumpError(getType(), null, "unexpected redo"); case RETRY: return runtime.newLocalJumpError(getType(), null, "retry outside of rescue not supported"); } throw new RuntimeException("Unhandled case in operands/IRException.java"); }
public RuntimeException getException(Ruby runtime) { switch (getType()) { case NEXT: return runtime.newLocalJumpError(getType(), null, "unexpected next"); case BREAK: return runtime.newLocalJumpError(getType(), null, "unexpected break"); case RETURN: return runtime.newLocalJumpError(getType(), null, "unexpected return"); case REDO: return runtime.newLocalJumpError(getType(), null, "unexpected redo"); case RETRY: return runtime.newLocalJumpError(getType(), null, "retry outside of rescue not supported"); } throw new RuntimeException("Unhandled case in operands/IRException.java"); }
public void IRException(IRException irexception) { print(irexception.getType()); } public void Label(Label label) { print(label.toString()); }
public void IRException(IRException irexception) { print(irexception.getType()); } public void Label(Label label) { print(label.toString()); }
@Override public void encode(IRWriterEncoder e) { super.encode(e); e.encode((byte) getType().ordinal()); }
@Override public void encode(IRWriterEncoder e) { super.encode(e); e.encode((byte) getType().ordinal()); }