Class SKException

    • Constructor Detail

      • SKException

        public SKException​(@Nullable
                           String message)
        Initializes a new instance of the SKException class with its message set to message.
        Parameters:
        message - A string that describes the error.
      • SKException

        public SKException​(@Nullable
                           String message,
                           @Nullable
                           Throwable cause)
        Initializes a new instance of the SKException class with its message set to message.
        Parameters:
        message - A string that describes the error.
        cause - The exception that is the cause of the current exception.
      • SKException

        public SKException​(Throwable e)
    • Method Detail

      • build

        public static SKException build​(String message,
                                        @Nullable
                                        Exception e)
        Forms an unchecked exception, if the exception is already an SK exception, it will be unwrapped and the cause extracted.
        Parameters:
        message - The message to be displayed
        e - The exception to be thrown
        Returns:
        An unchecked exception