Remove optional arguments from exception classes