Added distinct exception types.