Module shadowcopy.exceptions

Home to shadowcopy exceptions

Expand source code
"""
Home to shadowcopy exceptions
"""


class RequiresAdminError(PermissionError):
    """
    Used to denote that this operation requires admin.. and we're not admin
    """

    pass


class OSUnsupportedError(OSError):
    """
    Used to denote that functionality is being used on an unsupported OS
    """

    pass


class PathIsNotToFile(FileNotFoundError):
    """
    Used to denote that src path is not a file
    """

    pass


class ShadowCopyFailure(OSError):
    """
    Generically used to denote that shadow copy failed
    """

    pass

Classes

class OSUnsupportedError (*args, **kwargs)

Used to denote that functionality is being used on an unsupported OS

Expand source code
class OSUnsupportedError(OSError):
    """
    Used to denote that functionality is being used on an unsupported OS
    """

    pass

Ancestors

  • builtins.OSError
  • builtins.Exception
  • builtins.BaseException
class PathIsNotToFile (*args, **kwargs)

Used to denote that src path is not a file

Expand source code
class PathIsNotToFile(FileNotFoundError):
    """
    Used to denote that src path is not a file
    """

    pass

Ancestors

  • builtins.FileNotFoundError
  • builtins.OSError
  • builtins.Exception
  • builtins.BaseException
class RequiresAdminError (*args, **kwargs)

Used to denote that this operation requires admin.. and we're not admin

Expand source code
class RequiresAdminError(PermissionError):
    """
    Used to denote that this operation requires admin.. and we're not admin
    """

    pass

Ancestors

  • builtins.PermissionError
  • builtins.OSError
  • builtins.Exception
  • builtins.BaseException
class ShadowCopyFailure (*args, **kwargs)

Generically used to denote that shadow copy failed

Expand source code
class ShadowCopyFailure(OSError):
    """
    Generically used to denote that shadow copy failed
    """

    pass

Ancestors

  • builtins.OSError
  • builtins.Exception
  • builtins.BaseException