Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What are the important things to think about when implementing Exception Handling?

Pragya Keshap answered on March 1, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • advantages of Exception handling in java
  • Exception Handling in your project

  • What are the important things to think about when implementing Exception Handling?

    0

    1. Clean Up Resources in a Finally Block or Use a Try-With-Resource Statement

    2. Prefer Specific Exceptions

    3. Document the Exceptions You Specify

    4. Throw Exceptions With Descriptive Messages

    5. Catch the Most Specific Exception First

    6. Don’t Catch Throwable

    7. Don’t Ignore Exceptions

    8. Don’t Log and Throw

    9. Wrap the Exception Without Consuming It  

    https://stackify.com/best-practices-exceptions-java/

    Popularity 1/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: java when
    Link to this answer
    Share Copy Link
    Contributed on Mar 01 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.