question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception hierarchy

See original GitHub issue

Python has defined an exception hierarchy in the following form:

AzureError
  |- AzureLibraryError
      |- AzureLibraryRequestError
      |- AzureLibraryResponseError
  |- ServiceRequestError
      |- ConnectionTimeoutError
      |- ServiceHttpRequestError
          |- ClientRequestError
              |- ResourceExistsError
              |- ClientAuthenticationError
              |- ResourceModifiedError
          |- ServerError
          |- TooManyRedirectsError
          |- TooManyRetriesError

We need to develop a similar exception hierarchy that is idiomatic for Java developers.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
JonathanGilescommented, Mar 31, 2019

Todo:

  • Create a new package in azure-common com.azure.common.exception
  • We should repurpose the existing RestException class into ServiceRequestException, and relocate it into this package.
  • We build out the additional exception types and ensure that they are tested,
  • Ensure that Reactor properly propagates unchecked exceptions from the http pipeline through to the end user.
0reactions
JonathanGilescommented, May 1, 2019

@sima-zhu @alzimmermsft I still don’t understand what is being said here. Can you point to exactly what you want to remove, or is this no longer being removed (as this issue is closed)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java Exceptions Hierarchy Explained - Rollbar
The class at the top of the exception class hierarchy is the Throwable class, which is a direct subclass of the Object class....
Read more >
Exceptions in Java - GeeksforGeeks
All exception and error types are subclasses of class Throwable, which is the base class of the hierarchy. One branch is headed by...
Read more >
Java Exceptions - Hierarchy, Handling & Throwing ...
The Throwable class is at the top of the exception hierarchy following which are the subclasses-Error and Exception. Error and Exception ...
Read more >
The exception hierarchy in Java - Javamex
There is a basic exception class called Exception as you might expect. But in fact, the base of the hierarchy starts not with...
Read more >
The Standard Exception Hierarchy
18.2 The Standard Exception Hierarchy ... The C++ Standard Library implements the two-category error model described in Section 18.1 with a set of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found