Sidebar

throw or qie.error

0 votes
412 views
asked Mar 22, 2016 by (600 points)
reopened Mar 22, 2016 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';

 

answered Mar 22, 2016 by brandon-w-8204 (33,270 points)
edited Mar 22, 2016 by brandon-w-8204
...