Class DataNeedNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
energy.eddie.dataneeds.exceptions.DataNeedNotFoundException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataNeedNotFoundException(String dataNeedId) Creates a newDataNeedNotFoundExceptionthat results in an HTTP status code 400.DataNeedNotFoundException(String dataNeedId, boolean isBadRequest) isBadRequestshould be used to indicated that the Exception occurred because e.g. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataNeedNotFoundException
Creates a newDataNeedNotFoundExceptionthat results in an HTTP status code 400.- Parameters:
dataNeedId- ID of the dataNeed that couldn't be found.
-
DataNeedNotFoundException
isBadRequestshould be used to indicated that the Exception occurred because e.g. the permission request didn't contain a valid dataNeedId. If it's false, 404 is used (e.g. when dataNeedId is a path param).- Parameters:
dataNeedId- ID of the dataNeed that couldn't be found.isBadRequest- If true, HTTP status code 400 is returned, otherwise 404.
-
-
Method Details
-
isBadRequest
public boolean isBadRequest()
-