Made all exception types immutable