Package be.personify.iam.api
Class APIException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- be.personify.iam.api.APIException
-
- All Implemented Interfaces:
Serializable
public class APIException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description APIException()APIException(org.springframework.web.client.HttpStatusCodeException httpStatusCodeException)APIException(org.springframework.web.client.HttpStatusCodeException httpStatusCodeException, org.springframework.hateoas.EntityModel<?> entityModel)APIException(org.springframework.web.client.HttpStatusCodeException httpStatusCodeException, org.springframework.hateoas.EntityModel<?> entityModel, Query query)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()org.springframework.hateoas.EntityModel<?>getEntityModel()StringgetMessage()QuerygetQuery()voidsetCode(int code)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
APIException
public APIException()
-
APIException
public APIException(org.springframework.web.client.HttpStatusCodeException httpStatusCodeException)
-
APIException
public APIException(org.springframework.web.client.HttpStatusCodeException httpStatusCodeException, org.springframework.hateoas.EntityModel<?> entityModel)
-
APIException
public APIException(org.springframework.web.client.HttpStatusCodeException httpStatusCodeException, org.springframework.hateoas.EntityModel<?> entityModel, Query query)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getCode
public int getCode()
-
setCode
public void setCode(int code)
-
getEntityModel
public org.springframework.hateoas.EntityModel<?> getEntityModel()
-
getQuery
public Query getQuery()
-
-