---
title: "Item 58: Used checked exceptions for recoverable conditions and runtime exceptions for programming errors"
author: "amanhu"
date: "2011-03-08T15:53:00Z"
tags: []
slug: "item-58-used-checked-exceptions-for-recoverable-conditions-and-runtime-exceptions-for-programming-errors"
draft: false
lastmod: "2013-01-05T22:34:08Z"
id: 1762934
url: "https://bithufei.iteye.com/blog/1762934"
---

1 use checked exceptions for conditions from which the caller can reasonably be expected to recover.

2 use runtime exceptions to indicate programming errors. The majority of runtime exceptions indicate precondition violations.

3.All of the unchecked throwable you implement should subclass RuntimeException.