Exceptions

Inheritance diagram of pyjson5.Json5Exception, pyjson5.Json5EncoderException, pyjson5.Json5UnstringifiableType, pyjson5.Json5DecoderException, pyjson5.Json5NestingTooDeep, pyjson5.Json5EOF, pyjson5.Json5IllegalCharacter, pyjson5.Json5ExtraData, pyjson5.Json5IllegalType

exception pyjson5.Json5Exception(message=None, *args)

Base class of any exception thrown by PyJSON5.

add_note(object, /)

Exception.add_note(note) – add a note to the exception

message

Human readable error description

with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.