Package br.ufsc.labsec.web.exceptions
Class ApiMisusageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
br.ufsc.labsec.web.exceptions.ApiMisusageException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
VerifierApiMisusageException
public class ApiMisusageException extends Exception
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ApiMisusageException(String message, int httpStatus)
ApiMisusageException(String message, int httpStatus, Throwable cause)
ApiMisusageException(String messageTemplate, String param, int httpStatus)
ApiMisusageException(String messageTemplate, String param, int httpStatus, Throwable cause)
ApiMisusageException(Throwable cause, int httpStatus)
-
Method Summary
Modifier and Type Method Description int
getHttpStatus()
static ApiMisusageException
invalidParam(String param)
static ApiMisusageException
missingMandatoryParam(String param)
void
setHttpStatus(int httpStatus)
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApiMisusageException
-
ApiMisusageException
-
ApiMisusageException
-
ApiMisusageException
-
ApiMisusageException
-
-
Method Details
-
getHttpStatus
public int getHttpStatus() -
setHttpStatus
public void setHttpStatus(int httpStatus) -
missingMandatoryParam
-
invalidParam
-