1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\Database;
9:
10:
11: /**
12: * Server connection related errors.
13: */
14: class ConnectionException extends DriverException
15: {
16: }
17:
18:
19: /**
20: * Base class for all constraint violation related exceptions.
21: */
22: class ConstraintViolationException extends DriverException
23: {
24: }
25:
26:
27: /**
28: * Exception for a foreign key constraint violation.
29: */
30: class ForeignKeyConstraintViolationException extends ConstraintViolationException
31: {
32: }
33:
34:
35: /**
36: * Exception for a NOT NULL constraint violation.
37: */
38: class NotNullConstraintViolationException extends ConstraintViolationException
39: {
40: }
41:
42:
43: /**
44: * Exception for a unique constraint violation.
45: */
46: class UniqueConstraintViolationException extends ConstraintViolationException
47: {
48: }
49: