exception¶
- janim.exception.listen_exception(callback)¶
Add an exception listener. The
callbackwill be invoked for unhandled exceptions. If thecallbackreturnsTrue, the exception is suppressed.
- janim.exception.cancel_listen_exception(callback)¶
Remove the exception listener.
- janim.exception.custom_excepthook(exc_type, exc_value, exc_traceback)¶
- janim.exception.EXITCODE_PYSIDE6_NOT_FOUND = 1001¶
Exit code when
PySide6is not installed
- janim.exception.EXITCODE_MODULE_NOT_FOUND = 1002¶
Exit code when the file specified by
runorwriteis not found
- janim.exception.EXITCODE_NOT_FILE = 1003¶
Exit code when the path specified by
runorwriteis not a file
- janim.exception.EXITCODE_TYPST_NOT_FOUND = 1101¶
Exit code when Typst is not installed
- janim.exception.EXITCODE_TYPST_COMPILE_ERROR = 1102¶
Exit code when Typst compilation fails
- janim.exception.EXITCODE_FFMPEG_NOT_FOUND = 2001¶
Exit code when ffmpeg is not installed
- janim.exception.EXITCODE_FFPROBE_ERROR = 2002¶
Exit code when ffprobe execution fails
- exception janim.exception.JAnimException¶
Bases:
Exception
- exception janim.exception.ExitException(exit_code: int)¶
Bases:
JAnimExceptionWhen
ExitExceptionis not caught, it will exit directly withexit_codewithout outputtingtracebackinformation- exit_code: int¶
- exception janim.exception.TimelineError¶
Bases:
JAnimException
- exception janim.exception.TimelineLookupError¶
Bases:
TimelineError
- exception janim.exception.NotAnimationError¶
Bases:
TimelineError
- exception janim.exception.AnimationError¶
Bases:
TimelineError
- exception janim.exception.AnimGroupError¶
Bases:
AnimationError
- exception janim.exception.ApplyAlignerBrokenError¶
Bases:
AnimationError
- exception janim.exception.TargetNotFoundError¶
Bases:
AnimationError
- exception janim.exception.UpdaterError¶
Bases:
JAnimException
- exception janim.exception.GetItemError¶
Bases:
JAnimException
- exception janim.exception.PatternMismatchError¶
Bases:
GetItemError
- exception janim.exception.InvalidOrdinalError¶
Bases:
GetItemError
- exception janim.exception.InvalidTypstVarError¶
Bases:
JAnimException
- exception janim.exception.CmptGroupLookupError¶
Bases:
JAnimException
- exception janim.exception.PointError¶
Bases:
JAnimException
- exception janim.exception.InvaildMatrixError¶
Bases:
PointError
- exception janim.exception.BooleanOpsError¶
Bases:
JAnimException
- exception janim.exception.AsTypeError¶
Bases:
JAnimException
- exception janim.exception.ColorNotFoundError¶
Bases:
JAnimException
- exception janim.exception.FontNotFoundError¶
Bases:
JAnimException
- exception janim.exception.ShaderInjectionNotFoundError¶
Bases:
JAnimException
- exception janim.exception.GuiCommandError¶
Bases:
JAnimException