Skip to content

Show pretty error when EntityPrefSerializer encounters ClassCastException #2

@mjurkus

Description

@mjurkus

It is possible, that user might ClassCastException when getting value from ObjectPreference - possible cases - same preference key used, wrong PreferxSerializer implementation passed.

Now error could be very user unfriendly.
Need to show custom error with preference key, class, expected class - as much useful information as possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions