Class MessagingException

    • Constructor Detail

      • MessagingException

        public MessagingException​(String message)
        Constructs new instance.
        Parameters:
        message - Error message.
      • MessagingException

        public MessagingException​(String message,
                                  Throwable cause)
        Constructs new instance.
        Parameters:
        message - Error message.
        cause - Error cause.
      • MessagingException

        protected MessagingException​(String message,
                                     Throwable cause,
                                     boolean enableSuppression,
                                     boolean writableStackTrace)
        Constructs a new instance.
        Parameters:
        message - Error message.
        cause - Cause.
        enableSuppression - Enabled/disabled suppression.
        writableStackTrace - Whether or not the stack trace should be writable.
    • Method Detail

      • forkFromAsync

        public HekateException forkFromAsync()
        Description copied from class: HekateException
        Forks this exception by creating a new exception that has this instance as its cause.

        The primary use case of this method is to re-throw exceptions from asynchronous contexts (f.e. exceptions thrown by Future.get() method).

        Overrides:
        forkFromAsync in class HekateException
        Returns:
        Fork of this exception.