Class 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:
    Serialized Form
    • Constructor Detail

      • ObjectNotFoundException

        public ObjectNotFoundException​(String type,
                                       String message)
      • ObjectNotFoundException

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

      • getType

        public String getType()