Skip to content

Exception Handling

Kishor edited this page Aug 25, 2023 · 1 revision

Custom Exceptions :

  • DAO Exception
  • Validation Exception
  • Service Exception

Common Error Messages :

  • Name cannot be null or empty
  • Invalid Password
  • Invalid email address
  • Invalid phone number
  • User already exists
  • Book not found
  • Maximum borrow limit reached
  • Book already borrowed
  • Invalid book id
  • Failed to update user information
  • Failed to update book information
  • Failed to return the book
  • Database connection error

Table of Contents

  1. Introduction
    • Purpose
    • Features
    • User Persona
    • JavaDoc
  2. Prerequisites
    • Software Requirements
    • Database Setup
  3. Project Setup
    • Java Project Creation
    • Library Dependencies
  4. Database
    • Entity-Relationship Diagram (ERD)
    • Database Tables
  5. Modules
    • User Module
    • Book Module
    • Borrow Module
  6. Validations
    • User Validations
    • Book Validations
    • Borrow Validations
  7. Testing
    • Unit Testing
  8. Exception Handling
    • Common Error Messages
    • Exception Handling
  9. Future Improvements
    • Planned Features
    • Roadmap
  10. Resources
    • External Libraries
    • References

Clone this wiki locally