Package org.ehrbase.api.exception
Class PreconditionFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.ehrbase.api.exception.PreconditionFailedException
-
- All Implemented Interfaces:
Serializable
public class PreconditionFailedException extends RuntimeException
Project-custom exception that allows outbound APIs to react on backend problems. Shall be thrown to invoke status 412 "Precondition Failed" or whatever is appropriate. To be thrown in all cases where part of the request leads to problems, like malformed queries or non-existent referenced objects.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreconditionFailedException(String message)PreconditionFailedException(String message, String currentVersionUid, String url)PreconditionFailedException(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurrentVersionUid()StringgetUrl()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PreconditionFailedException
public PreconditionFailedException(String message)
-
-