Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 717 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 717 Bytes

Exception Handling in Kotlin

Introduction

This project contains an exception scheme for Kotlin projects that is based on runtime exceptions that contain a message, properties (key-value pairs) and a unique identifier. Each exception should be referenced in a user documentation with information on how critical it is and the audience that can interpret and solve the error e.g., developers or administrators.

Structure

  • org.example.exception: The main classes. Copy these into your project and rename the ProductException class to reflect your own context.
  • org.example.common: Commonly used classes.
  • org.example.demo: A small service example that shows how to leverage the exception API.