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
Thrown when user lookup by ID fails for database-related reasons.
Mapped to HTTP 500 INTERNAL_SERVER_ERROR.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new FailedToFindUserById exception with a default error message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FailedToFindUserByIdException
Constructs a new FailedToFindUserById exception with a default error message.- Parameters:
cause- the underlying cause of the exception
-