Class NotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tccc.kos.commons.util.dispatcher.exceptions.RequestException
com.tccc.kos.commons.util.dispatcher.exceptions.NotFoundException
- All Implemented Interfaces:
Serializable
Exception thrown when the requested resource is not found.
The HTTP status for this exception is 404 NOT_FOUND
.
- Since:
- 1.0
- Version:
- 2022-09-01
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotFoundException
(String message) Constructs a new "not found" exception with the specified message.NotFoundException
(String message, Throwable cause) Constructs a new "not found" exception with the specified message and cause.NotFoundException
(Throwable cause) Constructs a new "not found" exception with the specified cause. -
Method Summary
Methods inherited from class com.tccc.kos.commons.util.dispatcher.exceptions.RequestException
getStatus
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotFoundException
Constructs a new "not found" exception with the specified message.- Parameters:
message
- the detailed error message
-
NotFoundException
Constructs a new "not found" exception with the specified cause.- Parameters:
cause
- the exception that caused this exception
-
NotFoundException
Constructs a new "not found" exception with the specified message and cause.- Parameters:
message
- the detailed error messagecause
- the exception that caused this exception
-