Class KukenanWalletException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
es.kukenan.smartfi.common.service.exceptions.KukenanWalletException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BackingServiceException,EntityNotFoundException,ForbiddenException,InvalidCallException,InvalidCredentialsException
This is the parent exception for any exception thrown corresponding to an handled error condition.
This exceptions must be handled in an event execution contexts (the event will NOT be redirected to the dead-letter-queue) and must cause a rich * error response (with reason details) in REST operation contexts.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MapError aditional info.private final StringError code.private final Set<es.kukenan.smartfi.common.api.dtos.error.ErrorDetailDto>Error details.private final org.springframework.http.HttpStatusThe HTTP status to return if the exception is thrown in a REST operation context. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKukenanWalletException(String code, org.springframework.http.HttpStatus httpStatus, String message, Throwable cause, Map additionalInfo, Set<es.kukenan.smartfi.common.api.dtos.error.ErrorDetailDto> details) Constructor.protectedKukenanWalletException(String code, org.springframework.http.HttpStatus httpStatus, String message, Throwable cause, Set<es.kukenan.smartfi.common.api.dtos.error.ErrorDetailDto> details) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
httpStatus
private final org.springframework.http.HttpStatus httpStatusThe HTTP status to return if the exception is thrown in a REST operation context. -
code
Error code. -
additionalInfo
Error aditional info. -
details
Error details.
-
-
Constructor Details
-
KukenanWalletException
protected KukenanWalletException(String code, org.springframework.http.HttpStatus httpStatus, String message, Throwable cause, Map additionalInfo, Set<es.kukenan.smartfi.common.api.dtos.error.ErrorDetailDto> details) Constructor.- Parameters:
code- exception code. It is defined as a string, not an enumeration, to be extensible by micro-services.httpStatus- the corresponding http status in a REST operation context.message- error message.cause- error cause, if any.additionalInfo- error additional info.details- exceptionErrorDetailDto.
-
KukenanWalletException
protected KukenanWalletException(String code, org.springframework.http.HttpStatus httpStatus, String message, Throwable cause, Set<es.kukenan.smartfi.common.api.dtos.error.ErrorDetailDto> details) Constructor.- Parameters:
code- exception code. It is defined as a string, not an enumeration, to be extensible by micro-services.httpStatus- the corresponding http status in a REST operation context.message- error message.cause- error cause, if any.details- exceptionErrorDetailDto.
-