Skip to content

Improve error message for missing required parameters #412

Description

@imagejan

See #380 (comment).

Maybe we can add some API (to ObjectService? somewhere else?) to keep track of human-friendly types, such as:

String friendlyType = objectService.getHumanFriendlyName(Type type); // e.g. RandomAccessibleInterval => "an image"

(falling back to "an object"),
and then something like:

"This operation requires " + name + " of type " + type + "."

... to generate an error message such as:

This operation requires an image of type RandomAccessibleInterval.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions