1. A computer-implemented method comprising: accessing exception data of an exception that occurred on a machine, the exception data including a stack trace of the exception; determining that the exception is unique based on the stack trace of the exception, the determining that the exception is unique including: removing dynamic data from the stack trace of the exception to result in a stripped stack trace of the exception, applying a hash function to the stripped stack trace to calculate a particular primary hash code that uniquely identifies the stripped stack trace of the exception, accessing one or more primary hash codes stored in a record of a database, comparing the particular primary hash code against the one or more primary hash codes, and determining that the particular primary hash code is not included in the one or more primary hash codes; responsive to the determining that the exception is unique, performing a first categorizing, using one or more hardware processors, of the exception into one or more categories based on the stack trace of the exception; removing additional data from the stripped stack trace of the exception to result in a twice-stripped stack trace of the exception; applying the hash function to the twice-stripped stack trace to calculate a particular secondary hash code associated with the exception; and performing a second categorizing of the exception into the one or more categories based on the particular secondary hash code associated with the exception.