Add a TODO item.
[mailshears.git] / lib / common / errors.rb
1 # A generalization of PGError, and whatever MySQL and the other
2 # databases might eventually use.
3 class DatabaseError < StandardError
4 end
5
6
7 # Perhaps surprisingly, used to indicate that an account name is
8 # invalid.
9 class InvalidAccountError < StandardError
10 end
11
12
13 # Used to indicate that an account does not exist on the filesystem.
14 class NonexistentAccountError < StandardError
15 end
16
17
18 # Used to indicate that a domain does not exist on the filesystem.
19 class NonexistentDomainError < StandardError
20 end