So I have my code shown below. Everything is working correctly but when my insert statements violate the trigger it throws errors because of my raise_application_error.