You can join the rs_exceptshdr and rs_exceptscmd system tables on the sys_trans_id column to retrieve information about exceptions.
You can also join the rs_exceptscmd and rs_systext system tables to retrieve the text of a transaction. To do this, join the cmd_id column in rs_exceptscmd to the parentid column in rs_systext.
select * from rs_exceptshdr where error_site = 'data_server' and error_db = 'database' order by log_time
select t.texttype, t.sequence, t.textval from rs_systext t, rs_exceptscmd e where e.sys_trans_id = sys_trans_id and t.parentid = e.cmd_id order by e.src_cmd_line, e.output_cmd_index, t.sequence
See Replication Server Reference Manual > Replication Server System Tables for a list of all of the columns in these Replication Server system tables.