Source code for hostscli.errors
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# vim: fenc=utf-8
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
#
"""
Some custom utility functions that we use
"""
[docs]class HostsCLIException(Exception):
"""
A Custom Exception class
"""
[docs]class WebsiteImportError(HostsCLIException):
"""
An error to raise when no Domain list found for given website
"""
[docs]class SudoRequiredError(HostsCLIException):
"""
An error raised when the given hosts files is not writable.
"sudo" permissions are required to run this command.
"""