docplex.mp.error_handler module¶
-
class
docplex.mp.error_handler.
DefaultErrorHandler
(output_level=<enum 'InfoLevel'>)[source]¶ Bases:
docplex.mp.error_handler.AbstractErrorHandler
The default error handler class.
-
class
docplex.mp.error_handler.
InfoLevel
[source]¶ Bases:
enum.Enum
Enumerated type for the possible output levels.
Info levels are sorted in increasing order of severity: INFO, WARNING, ERROR, FATAL. Setting a level enables the printing of all messages from that severity and above.
Example
Setting the level to WARNING enables the printing of WARNING, ERROR, and FATAL messages, but not INFO level messages. Setting the level to FATAL suppresses all messages, except for fatal errors.