Add annotations for exceptions