Rename Error to ErrorType to indicate that it is an enum