Moiz Saifuddin
asked on
unique constraint
How do I catch a unique error constraint error on a try and catch block.....
say i want to trap a specific error like
if constraint_error then
' DO THIS
end if
say i want to trap a specific error like
if constraint_error then
' DO THIS
end if
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try
If constraint_error Then Throw New Exception(constraint_error
Catch ex As Exception
Response.Write("#" & ex.ToString & "#")
End Try