No, when you catch an insert exception , you can save the information you needed to array or something likes that, and continue to do the next insert.
In your application, you can write codes as follows.
begin transaction
loop
try
do insert
catch exception
save error info
end loop
if have any error
print erro
rollback transaction
else
commit transaction
or you can you that in postgresql procedure.