The present disclosure provides a statistical method, device,
electronic equipment, storage medium and program for operation exception. The method comprises: assigning a corresponding file number to each of a plurality of preset
source code files, each line of code in each
source code file having a corresponding
code line number; in response to monitoring that any
source code file runs abnormally, obtaining a corresponding exception
type number, file number and abnormal
code line number where the exception occurs; querying a target partition
directory matching the exception
type number from a plurality of preset partition directories, the target partition
directory comprising a plurality of type directories, each type
directory comprising a plurality of file directories, each file directory representing a
source code file and comprising a plurality of line number directories, and each line number directory representing a
code line; and adjusting an exception count value of a corresponding directory according to a directory order of the type directory, file directory and line number directory. The embodiment can comprehensively obtain detailed information of an exception event, facilitating subsequent tracing of the exception event.