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

public abstract class KukenanWalletException extends RuntimeException
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 Details

    • httpStatus

      private final org.springframework.http.HttpStatus httpStatus
      The HTTP status to return if the exception is thrown in a REST operation context.
    • code

      private final String code
      Error code.
    • additionalInfo

      private Map additionalInfo
      Error aditional info.
    • details

      private final Set<es.kukenan.smartfi.common.api.dtos.error.ErrorDetailDto> 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 - exception ErrorDetailDto.
    • 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 - exception ErrorDetailDto.