Class FailedToFindUserByIdException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.example.blogs.app.api.user.exception.FailedToFindUserByIdException
All Implemented Interfaces:
Serializable

public class FailedToFindUserByIdException extends RuntimeException
Thrown when user lookup by ID fails for database-related reasons. Mapped to HTTP 500 INTERNAL_SERVER_ERROR.
See Also:
  • Constructor Details

    • FailedToFindUserByIdException

      public FailedToFindUserByIdException(Exception cause)
      Constructs a new FailedToFindUserById exception with a default error message.
      Parameters:
      cause - the underlying cause of the exception