java.lang.Error: Unresolved compilation problem: Unreachable catch block for IllegalAccessException. This exception is never thrown from the try statement body

Coderanch | jose chiramal | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Exception Handling

    Coderanch | 7 years ago | jose chiramal
    java.lang.Error: Unresolved compilation problem: Unreachable catch block for IllegalAccessException. This exception is never thrown from the try statement body

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problem: Unreachable catch block for IllegalAccessException. This exception is never thrown from the try statement body

      at ThrowsDemo1.main()
    2. Unknown
      ThrowsDemo1.main
      1. ThrowsDemo1.main(ThrowsDemo1.java:20)
      1 frame