1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
552 views
by (600 points)
reopened by brandon-w-8204
When should we use throw as opposed to qie.error?

 

if (something) {

   throw ('error');

}

if (something) {

  qie.error('error');

}

1 Answer

+1 vote

The following commands will log the entry into the log but allow the message to continue processing.

qie.info: Logs an info or information level message.

qie.info('this is a qie.info');

qie.warn: Logs a warning level message

qie.warn('this is a qie.warn');

qie.debug: Logs ad debug level message

qie.debug('this is a qie.debug');

qie.error: Logs the error level message

qie.error('this is a qie.error');

The following commands will log an error to the log and send the message to the error queue.

message.error: QIE command to control the error that is shown in the error on the errored message.

message.error('this is a message.error');

throw:  This is a JAVA command. It will show the error with the line numbers

throw 'this is a throw';

 

by brandon-w-8204 (34.1k points)
edited by brandon-w-8204
...