Create a custom exception.