¿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 has been terminated.") { lblError.Text = "This code [...]
