Is there a way to configure email notification for errors

Is there a way to configure email notification for errors?

What kind of errors are you referring to?