Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 486 Bytes

CatchIndexOutOfBoundsException.md

File metadata and controls

11 lines (6 loc) · 486 Bytes

Pattern: Catching IndexOutOfBoundsException

Issue: -

Description

Checks for catching a IndexOutOfBoundsException. Catching IndexOutOfBoundsException should be avoided in the first place by checking for a valid index before accessing an indexed element. Catching the exception may mask underlying errors.

Further Reading