rewrite the Error checking mechanism module, add a new def to check the unclassified case