/
Parameter Value Error Snippet
Parameter Value Error Snippet
This snippet is used when an error is identified, typically when checking if supplied parameters are valid. You may use ProcessBreak to stop code execution immediately or you may proceed with error checking and stack all eventual error messages.
Prolog:
IF( pVersion @= '' );
nErrors = nErrors + 1;
sMessage = 'Parameter pVersion must not be empty.';
sSequenceID = NumberToString( nMultiMsgJSON );
sMessageJSON = INSRT(' "message":"', sMessage | '"', 1);
sMultiMsg = Expand( '%sMultiMsg%' | If(LONG(sMultiMsg)=0, '', ', ') | '"' | NumberToString( nMultiMsgJSON ) | '":{%sMessageJSON%}' ); nMultiMsgJSON = nMultiMsgJSON + 1;
LogOutput( cMsgErrorLevel, Expand( cMsgErrorContent ) );
ProcessBreak;
EndIf;
, multiple selections available,
Related content
Declaration Snippet*
Declaration Snippet*
Read with this
Subprocess (without messaging) Error Detection
Subprocess (without messaging) Error Detection
More like this
Roundtrip: Development and Troubleshooting Tips
Roundtrip: Development and Troubleshooting Tips
Read with this
Subprocess (with messaging) Error Detection and Message Passing
Subprocess (with messaging) Error Detection and Message Passing
More like this
Process Information Snippet
Process Information Snippet
More like this
Final Message Preparation for Process without Parallelism*
Final Message Preparation for Process without Parallelism*
More like this