Use of ErrorHandler for error