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

ErrorResponseException constructor is not public #8

Open
yingyingtang-brex opened this issue Apr 7, 2021 · 1 comment
Open

ErrorResponseException constructor is not public #8

yingyingtang-brex opened this issue Apr 7, 2021 · 1 comment

Comments

@yingyingtang-brex
Copy link

We are currently building a Kotlin service which uses this sinch java package.

We are trying to try catch the exception ErrorResponseException, however, since the constructor access is not given, and by default it is private, our Kotlin service could not access this exception with error:
Cannot access '<init>': it is package-private in 'ErrorResponseException'

Can we update the constructor for this exception to be public?

@thomasf147
Copy link
Collaborator

Our tests shows that Kotlin can catch this exception without any issue (as it is compiled to byte code same as java).
Could you provide the failing code that you have?

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

2 participants