exceptions.py 279 B

123456789101112
  1. import ctypes
  2. class PyperclipException(RuntimeError):
  3. pass
  4. class PyperclipWindowsException(PyperclipException):
  5. def __init__(self, message):
  6. message += " ({err})".format(err=ctypes.WinError())
  7. super(PyperclipWindowsException, self).__init__(message)