Package schrodinger :: Package infra :: Module mmerr :: Class Level
[hide private]
[frames] | no frames]

Class Level

                     object --+    
                              |    
util.DecoratorAndContextManager --+
                                  |
                                 Level

Change mmerr level within a context or while a function is being run. Uses the default mm.error_handler level (MMERR_WARNING) if none is provided. Uses the default mm.error_handle if none is provided.

Instance Methods [hide private]
 
__init__(self, level=MMERR_WARNING, handle=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__enter__(self)
Enter the context manager: changes error level for the specified error handler.
 
__exit__(self, exc_type, exc_value, traceback)
Exit context manager: return mmerr reporting to its previous level.

Inherited from util.DecoratorAndContextManager: __call__, decorate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, level=MMERR_WARNING, handle=None)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__enter__(self)

 

Enter the context manager: changes error level for the specified error handler.

Overrides: util.DecoratorAndContextManager.__enter__

__exit__(self, exc_type, exc_value, traceback)

 

Exit context manager: return mmerr reporting to its previous level.

Exception arguments are unused, but required by context manager signature.

Overrides: util.DecoratorAndContextManager.__exit__