File: exceptions.rst

package info (click to toggle)
tryton-server 7.0.40-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,748 kB
  • sloc: python: 53,502; xml: 5,194; sh: 803; sql: 217; makefile: 28
file content (99 lines) | stat: -rw-r--r-- 2,632 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.. _ref-exceptions:
.. module:: trytond.exceptions

Exceptions
==========

.. exception:: TrytonException

   The base class for all Tryton exceptions.

.. exception:: UserError(message[, description[, domain]])

   The base class for exceptions used to display an error message to users.
   The domain may be a 2-tuple containing a :ref:`domain <topics-domain>` and a
   dictionary of field definitions used to format the domain and append to the
   description.

.. exception:: UserWarning(name, message[, description])

   The base class for exceptions used to display a warning message to users.

.. exception:: LoginExceptions(name, message[, type])

   The exception used to request ``name`` parameter for the login process.

.. exception:: ConcurrencyException(message)

   The exception raised on concurrent modification.

.. exception:: RateLimitException

   The exception raised when user has sent too many login requests.

.. exception:: MissingDependenciesException(missings)

   The exception raised when modules are missing.


.. module:: trytond.model.exceptions

.. exception:: AccessError

   The exception raised when trying to access a record without the rights.

.. exception:: AccessButtonError

   The exception raised when trying to execute a button without the rights.

.. exception:: ButtonActionException

   The exception raised to launch the ``action`` instead of executing the
   button method.

   The ``value`` attribute is the action value returned.

.. exception:: ImportDataError

   The exception raises when importing data fails.

.. exception:: ValidationError

   The base class for all record validation error.

.. exception:: DomainValidationError

   The exception raised when the domain of a field is not valid.

.. exception:: RequiredValidationError

   The exception raised when a required field is empty.

.. exception:: SizeValidationError

   The exception raised when the size of a field is too big.

.. exception:: DigitsValidationError

   The exception raised when the value of a field does not respect its digits.

.. exception:: SelectionValidationError

   The exception raised when the value is not in the selection.

.. exception:: TimeFormatValidationError

   The exception raised when the time format of a field is not respected.

.. exception:: ForeignKeyError

   The exception raised when a foreign key is not respected.

.. exception:: SQLConstraintError

   The exception raised when a :attr:`~trytond.model.ModelSQL._sql_constraints`
   is not respected.

.. exception:: RecursionError

   The exception raised by :class:`~trytond.model.TreeMixin.check_recursion`.