package org.shedlang.compiler.patio.instructions; import org.shedlang.compiler.patio.operands.PatioOperand; import org.shedlang.compiler.sources.Source; /// Search the stack for an exception handler with a catch clause matching the /// thrown exception type. Unwind the stack up to and including this exception /// handler, and run the body of the catch clause. If no such exception handler /// is found, the process should abort. public record PatioThrow( String exceptionTypeName, PatioOperand value, Source source ) implements PatioInstruction { @Override public boolean isBlockTerminator() { return true; } }