exception

janim.exception.custom_excepthook(exc_type, exc_value, exc_traceback)
janim.exception.EXITCODE_PYSIDE6_NOT_FOUND = 1001

PySide6 未安装时的退出码

janim.exception.EXITCODE_MODULE_NOT_FOUND = 1002

使用 runwrite 指定的文件未找到时的退出码

janim.exception.EXITCODE_NOT_FILE = 1003

使用 runwrite 指定路径不是文件时的退出码

janim.exception.EXITCODE_PYOPENGL_NOT_FOUND = 1004

PyOpenGL 未安装时的退出码(仅在设备不支持 OpenGL4.3 的情况下需要安装 PyOpenGL)

janim.exception.EXITCODE_TYPST_NOT_FOUND = 1101

Typst 未安装时的退出码

janim.exception.EXITCODE_TYPST_COMPILE_ERROR = 1102

Typst 编译失败时的退出码

janim.exception.EXITCODE_FFMPEG_NOT_FOUND = 2001

ffmpeg 未安装时的退出码

janim.exception.EXITCODE_FFPROBE_ERROR = 2002

ffprobe 执行失败时的退出码

exception janim.exception.JAnimException

基类:Exception

exception janim.exception.ExitException(exit_code: int)

基类:JAnimException

ExitException 未被捕获时, 会直接以 exit_code 退出,不输出 traceback 信息

exit_code: int
exception janim.exception.TimelineError

基类:JAnimException

exception janim.exception.TimelineLookupError

基类:TimelineError

exception janim.exception.NotAnimationError

基类:TimelineError

exception janim.exception.AnimationError

基类:TimelineError

exception janim.exception.AnimGroupError

基类:AnimationError

exception janim.exception.ApplyAlignerBrokenError

基类:AnimationError

exception janim.exception.UpdaterError

基类:JAnimException

exception janim.exception.GetItemError

基类:JAnimException

exception janim.exception.PatternMismatchError

基类:GetItemError

exception janim.exception.InvalidOrdinalError

基类:GetItemError

exception janim.exception.InvalidTypstVarError

基类:JAnimException

exception janim.exception.CmptGroupLookupError

基类:JAnimException

exception janim.exception.PointError

基类:JAnimException

exception janim.exception.InvaildMatrixError

基类:PointError

exception janim.exception.BooleanOpsError

基类:JAnimException

exception janim.exception.AsTypeError

基类:JAnimException

exception janim.exception.ColorNotFoundError

基类:JAnimException

exception janim.exception.FontNotFoundError

基类:JAnimException