system.mes.monitor.addException

Sepasoft MES Module Suite

Description

Logs an exception in MES Monitoring.

Syntax

system.mes.monitor.addException(name, exception)


  • Parameters

String name - The name to identify this metric by. Using '/' in the name will create sub folders in the Tag structure.

String exception - The exception to record (wraps the error in java.lang.Exception format).

  • Returns

Nothing

  • Scope

All

Code Examples

Code Snippet

Code
import java.lang.Exception

timer = system.mes.monitor.start("doWorkScript")
try:
    doWork()
except Exception, e:
    timer.addException(java.lang.Exception('%s' % e))
finally:
    timer.end()

Sepasoft MES Module Suite