alter error class copies error actions from a template error class to the error class you want to alter and overwrites error actions which have the same error code.
alter [replication server] error class error_class set template to template_error_classThe replication server option specifies that you want to alter a Replication Server error class.