':type branch: str
:type reason: str'

def __init__(self, branch, reason):

    message = ('Invalid    branch:    %s\n%s' % (branch, reason))
    super(InvalidBranch, self).__init__(message)
    self.branch = branch
