Skip to content

Fix: Use `InvalidMicropubMetadataRequest` instead of `IllegalArgumentException`

Jamie Tanna requested to merge defect/invalid-request-exception into develop

As part of #132 (closed), we need to make sure that invalid metadata is handled correctly, as it was returning a 500, due to nothing being mapped for an IllegalArgumentException.

The InvalidMicropubMetadataRequest is mapped, and semantically makes a bit more sense. It's an unchecked exception because if it is triggered, there's nothing that can be done by the caller, as it's a client issue.

Closes #132 (closed).

Merge request reports