[JAVA] Types of exceptions in business systems

What is this?

Java exception

It doesn't matter which one you use, but it's annoying to try-catch every exception in the business logic, so I think it's easier to do it with unchecked exceptions. (You only need to handle exceptions that reduce the amount of code and are of interest. However, if you want to specify the exception you want to handle (there is an absolute reason to force it), may it be a checked exception?) However, there are various controversies about what to do with checked and unchecked exceptions, so I will not go into it here and be careful when designing if necessary. (Think from the perspective of the provider, the perspective of the user, the requirements of the application, etc.)

Business perspective exception

Consider whether to realize these exceptions as checked exceptions or unchecked exceptions.

Recommended Posts

Types of exceptions in business systems
List of types added in Java 9
Output in multiples of 3
A quick explanation of the five types of static in Java
Generate Stream from an array of primitive types in Java
[Swift] Types of types-Basic knowledge-
[Ruby] Various types of each
About types of code coverage
Log invisible exceptions in Jersey
Implementation of gzip in java
Judgment of fractions in Ruby
Implementation of tri-tree in Java
Pitfalls of WebTarget.queryParam () in JAX-RS
Implementation of HashMap in kotlin
[Sprint Boot] How to use 3 types of SqlParameterSource defined in org.springframework.jdbc.core.namedparam