Class GridClientException

    • Constructor Detail

      • GridClientException

        public GridClientException​(String msg)
        Constructs client exception.
        Parameters:
        msg - Message.
      • GridClientException

        public GridClientException​(String msg,
                                   Throwable cause)
        Constructs client exception.
        Parameters:
        msg - Message.
        cause - Cause.
      • GridClientException

        public GridClientException​(Throwable cause)
        Constructs client exception.
        Parameters:
        cause - Cause.
    • Method Detail

      • hasCause

        public boolean hasCause​(@Nullable
                                @Nullable Class<? extends Throwable>... cls)
        Checks if passed in 'Throwable' has given class in 'cause' hierarchy including that throwable itself.

        Note that this method follows includes Throwable.getSuppressed() into check.

        Parameters:
        cls - Cause classes to check (if null or empty, false is returned).
        Returns:
        True if one of the causing exception is an instance of passed in classes, false otherwise.