Search This Blog

Sunday, November 18, 2018

The AWS SDK for Java uses runtime (or unchecked) exceptions

The AWS SDK for Java uses runtime (or unchecked) exceptions instead of checked exceptions for these reasons:


  • To allow developers fine-grained control over the errors they want to handle without forcing them to handle exceptional cases they aren't concerned about (and making their code overly verbose)
  • To prevent scalability issues inherent with checked exceptions in large applications


In general, checked exceptions work well on small scales, but can become troublesome as applications grow and become more complex.