A Python base exception object. That is, an instance of BaseException.
8.1. PyBaseException
def
def
Formats the exception as a Lean string, closely mirroring how Python would print it.
8.1.1. Raising Exceptions
def
Raises a PyRuntimeError with the given message msg.
def
Raises a PyEOFError.
def
Raises a PyTypeError with the given message msg.
def
Raises a PyValueError with the given message msg.
def
Nerodia.raisePyOSError {α : Type} (errno : UInt32) (strerror : String) (filename? : Option System.FilePath := none) : CPyIO αNerodia.raisePyOSError {α : Type} (errno : UInt32) (strerror : String) (filename? : Option System.FilePath := none) : CPyIO α
Raises a PyOSError (possibly a subclass) corresponding to the OS-specific
errno with the system error message strerror and optional filename.