How to use the pyperclip.exceptions.PyperclipException function in pyperclip

To help you get started, we’ve selected a few pyperclip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github asweigart / pyperclip / pyperclip / exceptions.py View on Github external
import ctypes


class PyperclipException(RuntimeError):
    pass


class PyperclipWindowsException(PyperclipException):
    def __init__(self, message):
        message += " ({0})".format(ctypes.WinError())
        super(PyperclipWindowsException, self).__init__(message)
github asweigart / pyperclip / pyperclip / clipboards.py View on Github external
def __call__(self, *args, **kwargs):
            raise PyperclipException(EXCEPT_MSG)