Class RepositoryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.university.bookstore.repository.RepositoryException
- All Implemented Interfaces:
Serializable
Exception thrown when repository operations fail.
This exception wraps underlying storage-related exceptions and provides a clean abstraction for the domain layer.
- Since:
- 2024-09-15
- Version:
- 3.0
- Author:
- Navid Mohaghegh
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryException(String message) Creates a new repository exception with the specified message.RepositoryException(String message, Throwable cause) Creates a new repository exception with the specified message and cause.RepositoryException(Throwable cause) Creates a new repository exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RepositoryException
Creates a new repository exception with the specified message.- Parameters:
message- the error message
-
RepositoryException
-
RepositoryException
Creates a new repository exception with the specified cause.- Parameters:
cause- the underlying cause
-