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.
See Also:
  • Constructor Details

    • ObjectNotFoundException

      public ObjectNotFoundException(String type, String message)
    • ObjectNotFoundException

      public ObjectNotFoundException(String type, String message, Throwable cause)
  • Method Details

    • getType

      public String getType()