#!/usr/bin/env python
"""hos-legacymounts exceptions module: Module for defining exceptions"""

class Error(Exception):
    """The abstract/base class for the rest of exceptions.

    Parameters
    ----------
    msg : str
        Human readable string describing the exception.

    Attributes
    ----------
    msg : str
        Human readable string describing the exception.

    """
    def __init__(self, msg):
        self.msg = msg

    def __str__(self):
        return self.msg

class BindMountTimeout(Error):
    """Exception: Timeout while waiting for mount components"""

class NoSuchFSLabel(Error):
    """Exception: Required filesystem label not found"""
