Function that is called when a warning or error is encountered. The parameters are the file name, line number, column number, and the error or warning message.