Class SystemException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.adamantic.quicknote.exceptions.SystemException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConfigException, NotImplemented, TimeToLiveExpired

public class SystemException extends RuntimeException
Base class for all system-level exceptions. These are exceptions that are not caused by the user (business) logic, but by the system itself (e.g. configuration errors, network errors, etc.). In some circumstances, a system exception may disappear if the operation is retried (e.g. a network error may be transient) - but the application should know how to handle each specific system exception.
Author:
Domenico Barra - domenico@adamantic.io
See Also:
  • Constructor Details

    • SystemException

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

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

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