From 6420e6ff944ec9a0d96e4eba0447c0ddf8742200 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 19 2014 09:02:42 +0000 Subject: Add the first exceptions --- diff --git a/progit/exceptions.py b/progit/exceptions.py new file mode 100644 index 0000000..068375f --- /dev/null +++ b/progit/exceptions.py @@ -0,0 +1,23 @@ +#-*- coding: utf-8 -*- + +""" + (c) 2014 - Copyright Red Hat Inc + + Authors: + Pierre-Yves Chibon + +""" + + +class ProgitException(Exception): + ''' Parent class of all the exception for all Progit specific + exceptions. + ''' + pass + + +class RepoExistsException(ProgitException): + ''' Exception thrown when trying to create a repository that already + exists. + ''' + pass