You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a GitHub API call returns a non-success status (e.g., 404 NOT FOUND), Jcabi throws an AssertionError. This however is not an Exception, but rather an Error, which is against the guidelines of the Java spec.
Error is the superclass of all the exceptions from which ordinary programs are not ordinarily expected to recover.
We would like to handle this gracefully in our application though. An ugly workaround is to catch this AssertionError, but the Java specification clearly states that this is against the goal of Errors. This should be an (unchecked?) exception instead.
The text was updated successfully, but these errors were encountered:
When a GitHub API call returns a non-success status (e.g., 404 NOT FOUND), Jcabi throws an
AssertionError
. This however is not anException
, but rather anError
, which is against the guidelines of the Java spec.To quote the Oracle docs:
We would like to handle this gracefully in our application though. An ugly workaround is to catch this
AssertionError
, but the Java specification clearly states that this is against the goal ofError
s. This should be an (unchecked?) exception instead.The text was updated successfully, but these errors were encountered: