Use create error class to create your own error classes.
An error class is a name used to group error action assignments. create error class copies the error actions from the template error class to the new error class.
You can define a single error class to use with all databases managed by the same type of data server. For example, you can use the default Adaptive Server error class, rs_sqlserver_error_class, with any Adaptive Server database. There is no need to create another error class unless a database has special error-handling requirements.
create [replication server] error class error_class [set template to template_error_class]The replication server option specifies that you want to create a Replication Server error class. You can use the set template to option, and another error class as a template to create an error class.
create error class pubs2_error_class
create replication server error class my_rs_err_class set template to rs_repserver_error_class
create error class my_error_class set template to rs_oracle_error_class