Added ERROR_FLAG enum to replace integer literal used for indicating
special conditions.