Changed exception types.