Skip to content

Commit

Permalink
add Lisp.java_error() convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
easye committed Jun 29, 2023
1 parent 0c6ab18 commit 5fd79cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/armedbear/lisp/Lisp.java
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ public static final LispObject program_error(LispObject initArgs)
return error(new ProgramError(initArgs));
}

public static final LispObject java_error(Throwable t) {
return error(new JavaException(t));
}

public static volatile boolean interrupted;
public static volatile LispThread threadToInterrupt;

Expand Down

0 comments on commit 5fd79cd

Please sign in to comment.