Finer grained info on what led to a constraint exception

  • Thread starter Thread starter ken busse
  • Start date Start date
K

ken busse

Is there any way to provide a finer grained source of
information on what led to a constraint exception?
This is really a blunt tool right now.
 
Hi Ken,

As far as I know, there isn't such a tool provider more information about
the source of the constraint exception. All the information about the
constraint exception are in the members of the ConstraintException object.
Generally, we can estimate the source of the exception from the Message,
StackTrace and InnerException member of the ConstraintException.

For more information about the ConstaintException members, please refer to
the following link:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemdataconstraintexceptionmemberstopic.asp

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
No, you are wrong. We can generally find out what's wrong
by the context of where the exception occurs. That is it.
 
Hi Ken,

Do you mean the context of codes? If yes, that's exactly what I meant in my
last post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top