Capturing Rejected.Deleted Records

How do i capture or insert the deleted/rejected records from dbt to a table or which is more or less similar to creating a error log table in PL/SQL ? is there any way