After you have create a new error class, you can initialize it with error actions from an error class such as the system-provided rs_sqlserver_error_class.
rs_init_erroractions new_error_class, template_class
rs_init_erroractions pubs2_error_class, rs_sqlserver_error_class
Then use the assign action command to change the actions for individual errors.