specified the type of the error