Skip to content

Exceptions

FuelExhaustedError

Bases: InterpreterError


              flowchart TD
              kirin.interp.exceptions.FuelExhaustedError[FuelExhaustedError]
              kirin.interp.exceptions.InterpreterError[InterpreterError]

                              kirin.interp.exceptions.InterpreterError --> kirin.interp.exceptions.FuelExhaustedError
                


              click kirin.interp.exceptions.FuelExhaustedError href "" "kirin.interp.exceptions.FuelExhaustedError"
              click kirin.interp.exceptions.InterpreterError href "" "kirin.interp.exceptions.InterpreterError"
            

An error raised when the interpreter runs out of fuel.

InterpreterError

Bases: Exception


              flowchart TD
              kirin.interp.exceptions.InterpreterError[InterpreterError]

              

              click kirin.interp.exceptions.InterpreterError href "" "kirin.interp.exceptions.InterpreterError"
            

Generic interpreter error.

This is the base class for all interpreter errors.

StackOverflowError

Bases: InterpreterError


              flowchart TD
              kirin.interp.exceptions.StackOverflowError[StackOverflowError]
              kirin.interp.exceptions.InterpreterError[InterpreterError]

                              kirin.interp.exceptions.InterpreterError --> kirin.interp.exceptions.StackOverflowError
                


              click kirin.interp.exceptions.StackOverflowError href "" "kirin.interp.exceptions.StackOverflowError"
              click kirin.interp.exceptions.InterpreterError href "" "kirin.interp.exceptions.InterpreterError"
            

An error raised when the interpreter stack overflows.