Skip to content
New issue

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

Custom error message while Deserialization Exception #192

Open
hardvain opened this issue Aug 2, 2016 · 0 comments
Open

Custom error message while Deserialization Exception #192

hardvain opened this issue Aug 2, 2016 · 0 comments

Comments

@hardvain
Copy link

hardvain commented Aug 2, 2016

Hi, I am using spray-json v1.3.1. In this, I have a complex AST and I am trying to convert a json to this AST using spray json. I have defined RootJsonFormats for the objects in the AST. In case of a data type mismatch or some error in json, spray-json throws an error message like Expect JsBoolean which I dont want to expose outside. Is there a way to customize this message. Mine is a spray app. Also All our APIs return a json in case of error in a specific structure. I would also like to send DeserilizationExceptions as json. How to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant