Package org.ehrbase.api.exception
Class ObjectNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.ehrbase.api.exception.ObjectNotFoundException
-
- All Implemented Interfaces:
Serializable
public class ObjectNotFoundException extends RuntimeException
Project-custom exception that allows outbound APIs to react on backend problems. Shall be thrown to invoke status 404 "Not found" or whatever is appropriate. The specific resource (EHR, composition, ...) is not available.- Since:
- 1.0
- Author:
- Jake Smolka
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectNotFoundException(String type, String message)ObjectNotFoundException(String type, String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-