<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def onerror(self, message, source, lineno, colno):
 """Called when an error occurs."""

        return (message, source, lineno, colno)