Skip to main content

WarningsMode

This enumeration defines the available modes for handling warnings within the system. It allows for suppressing warnings entirely, reporting them as standard warnings, or treating them as fatal errors.

Attributes

AttributeTypeDescription
None[WarningsMode](warningsmode.md?sid=serializers_extra_warningsmode)Disables all warning reporting during execution.
Warn[WarningsMode](warningsmode.md?sid=serializers_extra_warningsmode)Logs warnings to the standard output or log file without interrupting execution.
Error[WarningsMode](warningsmode.md?sid=serializers_extra_warningsmode)Treats all warnings as fatal errors, causing the process to terminate or raise an exception.

Methods


None()

def None()

Disables all warning outputs, suppressing any non-critical diagnostic messages during execution.


Warn()

def Warn()

Enables standard warning reporting, allowing the system to emit diagnostic messages without halting execution.


Error()

def Error()

Escalates all warnings to error status, typically causing the process to terminate or fail when a warning is encountered.