updated location of error message for event triggering
removed throwMaskedException and switched to console.log() for event triggering error reporting