Skip to content

Commit

Permalink
Added suppressed error into exception
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Apr 9, 2024
1 parent 5b94323 commit 1c52215
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ private [parsley] object RegisterOutOfBoundsException {
// out of bounds register.
case ste if ste.getMethodName == "apply"
&& ste.getClassName.startsWith("parsley.internal.machine.instructions") =>
new CorruptedReferenceException
val err = new CorruptedReferenceException
err.addSuppressed(e)
err
}
case _ => None
}
Expand Down

0 comments on commit 1c52215

Please sign in to comment.