Skip to content

Calling MappingReader.read with an unsupported format results in an undescriptive exception #25

@Juuxel

Description

@Juuxel

When one of the read methods is passed an unsupported format (apart from MCP), the code throws an IllegalStateException with no message:

default:
throw new IllegalStateException();

IllegalStateException isn't really appropriate here ("Signals that a method has been invoked at an illegal or inappropriate time."), and the user gets no useful information from the exception since it has no message either.

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