Class CoffeeGrinderException

    • Constructor Summary

      Constructors 
      Constructor Description
      CoffeeGrinderException​(java.lang.String code, java.lang.String message)
      An exception with a message.
      CoffeeGrinderException​(java.lang.String code, java.lang.String message, java.lang.Throwable cause)
      An exception with an underlying cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCode()
      Get the error code.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CoffeeGrinderException

        public CoffeeGrinderException​(java.lang.String code,
                                      java.lang.String message)
        An exception with a message.
        Parameters:
        code - the code
        message - the message
      • CoffeeGrinderException

        public CoffeeGrinderException​(java.lang.String code,
                                      java.lang.String message,
                                      java.lang.Throwable cause)
        An exception with an underlying cause.
        Parameters:
        code - the code
        message - the message
        cause - the cause
    • Method Detail

      • getCode

        public java.lang.String getCode()
        Get the error code.
        Returns:
        the error code.