Package com.lpvs.exception


package com.lpvs.exception
This package contains custom exception classes used in the application to represent various error scenarios. These exceptions extend the standard RuntimeException class, making them unchecked exceptions that can be thrown and propagated throughout the application.

The exceptions in this package are designed to cover specific error conditions, such as failed login attempts (LoginFailedException), unauthorized access attempts (WrongAccessException), and other application-specific error situations.

Each exception class includes a constructor that allows the specification of a detailed error message, providing additional context about the reason for the exception.

These custom exceptions are often used in conjunction with a global exception handling mechanism to generate consistent and meaningful error responses for the end-users and to facilitate proper error logging.

  • Class
    Description
    Represents an error response containing details about an encountered exception.
    Exception thrown to indicate a failed login attempt.
    Global exception handler for controllers in the application.
    Exception thrown to indicate an attempt to access a resource without proper authorization.