Skip to content

Glossary: Spring Boot Basics

Custom exception

Also written: ProductNotFoundException, OutOfStockException

Your own exception class extending RuntimeException, such as ProductNotFoundException. The service throws it and ApiErrors turns it into an HTTP answer.

Where the book teaches it

Related terms

@RestControllerAdviceProblemDetail