Helper methods for handling errors in editors gracefully.