Class SKCheckedException

    • Constructor Detail

      • SKCheckedException

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

        public SKCheckedException​(@Nullable
                                  String message,
                                  @Nullable
                                  Throwable cause)
        Initializes a new instance of the SKCheckedException 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.
      • SKCheckedException

        public SKCheckedException​(Throwable e)
    • Method Detail

      • build

        public static SKCheckedException build​(String message,
                                               @Nullable
                                               Exception e)
        Forms a checked 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:
        A checked exception