factor out UUIDObject.raises_from