Class BusinessException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.adamantic.quicknote.exceptions.BusinessException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ChannelNotFound

public class BusinessException extends Exception
Base class for business exceptions - i.e. all exceptions that the application should be prepared to handle as a business failure. Most times, business exceptions indicate that the failure condition is permanent if reparatory actions are not taken, and thus the application should not retry without having a remediation strategy.
Author:
Domenico Barra - domenico@adamantic.io
See Also:
  • Constructor Details

    • BusinessException

      public BusinessException(ExceptionCode code)
      Constructs a new business exception with the given code.
      Parameters:
      code - the exception code.
    • BusinessException

      public BusinessException(ExceptionCode code, String message)
      Constructs a new business exception with the given code and message.
      Parameters:
      code - the exception code.
      message - the exception message.
    • BusinessException

      public BusinessException(ExceptionCode code, String message, Throwable cause)
      Constructs a new business exception with the given code, message and cause.
      Parameters:
      code - the exception code.
      message - the exception message.
      cause - the exception that has caused this business exception.