Diagrams
User Guide
Diagrams
:
Utilities
:
Publishing from Diagrams via PML
: Error Handling:
Error Handling:
If something goes wrong the PMLDiagrams object will throw a PMLNetException that can be handled in PML like below:
!tool.PublishToAVEVANET('/MainRoom')
handle any
!Etext = !!Error.Text
$P $!Etext
endhandle
If needed, it is possible to filter exceptions by using module 98 and error code 1 i.e.:
!tool.PublishToAVEVANET('/MainRoom')
handle(98,1)
!Etext = !!Error.Text
$P $!Etext
endhandle
The .
ExportToSVG
method throws PMLExceptions with module number 98 and code 2.
!tool.ExportToSVG('/MainRoom')
handle(98,2)
!Etext = !!Error.Text
$P $!Etext
endhandle
The error message might be different, depending on the problem.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.