CUSTOM ERROR MESSAGE CREATE
Tue Dec 20 2022 08:21:19 GMT+0000 (Coordinated Universal Time)
Saved by
@mdfaizi
function CreateError(messagetest) {
log.error("Error Message", messagetest)
var myCustomError = error.create({
name: 'Budget Amount Issue',
message: messagetest,
notifyOff: false
});
// This will write 'Error: WRONG_PARAMETER_TYPE Wrong parameter type selected' to the log
log.error('Error: ' + myCustomError.name, myCustomError.message);
throw myCustomError;
}
content_copyCOPY
Comments