equal
deleted
inserted
replaced
44 from lxml import etree |
44 from lxml import etree |
45 |
45 |
46 from xmlclass import GenerateParserFromXSDstring |
46 from xmlclass import GenerateParserFromXSDstring |
47 from PLCControler import LOCATION_CONFNODE |
47 from PLCControler import LOCATION_CONFNODE |
48 from editors.ConfTreeNodeEditor import ConfTreeNodeEditor |
48 from editors.ConfTreeNodeEditor import ConfTreeNodeEditor |
|
49 from POULibrary import UserAddressedException |
49 |
50 |
50 _BaseParamsParser = GenerateParserFromXSDstring("""<?xml version="1.0" encoding="ISO-8859-1" ?> |
51 _BaseParamsParser = GenerateParserFromXSDstring("""<?xml version="1.0" encoding="ISO-8859-1" ?> |
51 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
52 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
52 <xsd:element name="BaseParams"> |
53 <xsd:element name="BaseParams"> |
53 <xsd:complexType> |
54 <xsd:complexType> |
676 """ Raise an exception that will trigger error message intended to |
677 """ Raise an exception that will trigger error message intended to |
677 the user, but without backtrace since it is not a software error """ |
678 the user, but without backtrace since it is not a software error """ |
678 |
679 |
679 raise UserAddressedException(message) |
680 raise UserAddressedException(message) |
680 |
681 |
681 # Exception type for problems that user has to take action in order to fix |
|
682 class UserAddressedException(Exception): |
|
683 pass |
|
684 |
|