¿Cómo tratar las excepciones en Java?
Miércoles, 5 Octubre 2005
Es muy, sencillo:
[code lang="java"]
try
{
// [lots of code that accesses database thru helper functions...]
}
catch (Exception e)
{
if (e.Message ==
“Cannot insert duplicate key row in object ‘ProjectIDCode’ with unique ”
+ “index ‘adx_Projects_ProjectIDCode’.\r\n”
+ “Unexpected error inserting Profile.\r\n”
+ “The statement [...]
