Class PostNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.example.blogs.app.api.post.exception.PostNotFoundException
- All Implemented Interfaces:
Serializable
Exception thrown when a requested post does not exist.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPostNotFoundException(Exception cause) Constructs a new PostNotFound with a default message and underlying 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
-
PostNotFoundException
Constructs a new PostNotFound with a default message and underlying cause.- Parameters:
cause- the underlying cause of the exception
-