Adds custom exception classes