Package org.fcrepo.kernel.api.exception
Class PreconditionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.fcrepo.kernel.api.exception.RepositoryRuntimeException
-
- org.fcrepo.kernel.api.exception.PreconditionException
-
- All Implemented Interfaces:
Serializable
public class PreconditionException extends RepositoryRuntimeException
- Since:
- Jun 22, 2017
- Author:
- dbernstein
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreconditionException(String msg, int httpStatus)
Ordinary constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHttpStatus()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PreconditionException
public PreconditionException(String msg, int httpStatus)
Ordinary constructor- Parameters:
msg
- error messagehttpStatus
- the http status code
-
-
Method Detail
-
getHttpStatus
public int getHttpStatus()
- Returns:
- the httpStatus
-
-