Class IgniteIllegalStateException

    • Constructor Detail

      • IgniteIllegalStateException

        public IgniteIllegalStateException​(String msg,
                                           @Nullable
                                           @Nullable Throwable cause)
        Constructs exception with given message and cause.
        Parameters:
        msg - Exception message.
        cause - Exception cause.
      • IgniteIllegalStateException

        public IgniteIllegalStateException​(Throwable cause)
        Creates exception given throwable as a cause and source of error message.
        Parameters:
        cause - Non-null throwable cause.
      • IgniteIllegalStateException

        public IgniteIllegalStateException​(String msg)
        Constructs exception with given message.
        Parameters:
        msg - Exception message.
    • Method Detail

      • hasCause

        public boolean hasCause​(@Nullable
                                @Nullable Class<? extends Throwable>... cls)
        Checks if this exception has given class in 'cause' hierarchy.
        Parameters:
        cls - Cause class to check (if null, false is returned)..
        Returns:
        True if one of the causing exception is an instance of passed in class, false otherwise.
      • getCause

        @Nullable
        public <T extends Throwable> T getCause​(@Nullable
                                                @Nullable Class<T> cls)
        Gets first exception of given class from 'cause' hierarchy if any.
        Type Parameters:
        T - Type of the causing exception.
        Parameters:
        cls - Cause class to get cause (if null, null is returned).
        Returns:
        First causing exception of passed in class, null otherwise.