Equations
Internal exceptions registered in the system.
Register a new internal exception in the system.
Each internal exception has a unique index.
Throw an exception if the given name is not unique.
This method is usually invoked using the initialize
command.
Instances For
Convert internal exception id into the message "internal exception #<idx>"
Instances For
Retrieve the name used to register the internal exception.
Equations
- id.getName = do let exs ← ST.Ref.get Lean.internalExceptionsRef let i : Nat := id.idx if h : i < exs.size then pure exs[i] else throw (IO.userError "invalid internal exception id")