From 07a33f71b4075c85343b3ca538fd85b806590875 Mon Sep 17 00:00:00 2001 From: Hammy Date: Sun, 1 Aug 2021 22:45:17 +0100 Subject: [PATCH] Add new exception to be thrown when clipboard isn't available --- .../exception/CannotAccessClipboardException.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main/java/me/goudham/exception/CannotAccessClipboardException.java diff --git a/src/main/java/me/goudham/exception/CannotAccessClipboardException.java b/src/main/java/me/goudham/exception/CannotAccessClipboardException.java new file mode 100644 index 0000000..465351d --- /dev/null +++ b/src/main/java/me/goudham/exception/CannotAccessClipboardException.java @@ -0,0 +1,10 @@ +package me.goudham.exception; + +/** + * Thrown when {@link java.awt.datatransfer.Clipboard} is unavailable to be accessed + */ +public class CannotAccessClipboardException extends Throwable { + public CannotAccessClipboardException(String exceptionMessage) { + super(exceptionMessage); + } +}