Stop pretending that we'll ever work with another DBMS.
[mailshears.git] / lib / common / errors.rb
1 # Username is syntactically invalid.
2 class InvalidUserError < StandardError
3 end
4
5 # Domain is syntactically invalid.
6 class InvalidDomainError < StandardError
7 end
8
9
10 # Used to indicate that an user does not exist.
11 class NonexistentUserError < StandardError
12 end
13
14 # Used to indicate that a domain does not exist.
15 class NonexistentDomainError < StandardError
16 end
17
18
19 # When you try to rename a user on top of one that already exists.
20 class UserAlreadyExistsError < StandardError
21 end