Set the error code in case this result represents an error.
an RelationCheckResult instance.
the RelationError