Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RealmUtils.copyToRealm() name object class in "Cannot set/copyToRealm an outdated object" Exception #1846

Open
MarcusWolschon opened this issue Oct 17, 2024 · 1 comment

Comments

@MarcusWolschon
Copy link

Problem

throw IllegalArgumentException("Cannot set/copyToRealm an outdated object. Use findLatest(object) to find the version of the object required in the given context.")
is often called recursive.
The Exception is thus useless as it doesn't tell the developer what object in the hierarchy is outdated.

Solution

Name the class of the BaseRealmObject in the Exception message.

Alternatives

Name the hierarchy of object fields that are being assigned.

How important is this improvement for you?

Would be a major improvement

Feature would mainly be used with

Local Database only

Copy link

sync-by-unito bot commented Oct 17, 2024

➤ PM Bot commented:

Jira ticket: RKOTLIN-1134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant