from com.inductiveautomation.ignition.client.util.gui import ErrorUtil
from org.apache.commons.lang3.reflect import FieldUtils
errorPanel = FieldUtils.readStaticField(ErrorUtil, "errorPanel", True)
warningPanel = FieldUtils.readStaticField(ErrorUtil, "warningPanel", True)
errors = FieldUtils.readField(errorPanel, "errors", True)
warnings = FieldUtils.readField(warningPanel, "errors", True)
for error in errors:
print error.title
print error.message
print error.exception
for warning in warnings:
print warning.title
print warning.message
print warning.exception