We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/jooby-project/jooby/blob/master/jooby/src/main/java/org/jooby/MediaType.java#L533
This can throw exceptions, of course:
checkArgument(typeAndSubtype.length == 2, "Bad media type found '%s' while parsing '%s'",type, value);
Can they be caught locally, and rethrown as new BadMediaType(cause), please?
new BadMediaType(cause)
This way users of Jooby can have a error block, like so:
err(BadMediaType.class, (req, rsp, err) -> { rsp.send("whatever); });
And perhaps BadMediaType is a subclass of RequestParsingException.
BadMediaType
RequestParsingException
The text was updated successfully, but these errors were encountered:
560ea5d
Merge pull request #799 from jooby-project/788
097bfc5
MediaType improvement for malware attack against known route. fix #788
No branches or pull requests
https://github.com/jooby-project/jooby/blob/master/jooby/src/main/java/org/jooby/MediaType.java#L533
This can throw exceptions, of course:
checkArgument(typeAndSubtype.length == 2, "Bad media type found '%s' while parsing '%s'",type, value);
Can they be caught locally, and rethrown as
new BadMediaType(cause)
, please?This way users of Jooby can have a error block, like so:
And perhaps
BadMediaType
is a subclass ofRequestParsingException
.The text was updated successfully, but these errors were encountered: