Adds Exception class