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

Pass JsonDataException back to the caller #5

Open
matejdro opened this issue Jun 16, 2019 · 0 comments
Open

Pass JsonDataException back to the caller #5

matejdro opened this issue Jun 16, 2019 · 0 comments

Comments

@matejdro
Copy link

I'm new to ktor so I'm not sure what would be idiomatic way to do this, but often Moshi provides pretty good error mesages when throwing JsonDataException that described what went with sent JSON.

Can ktor-moshi have an option to automatically capture those and respond with 400 and this message?

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