![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Is there a way to format (or atleast insert line breaks) to the exception output. In the catch block I do something like as follows, but it does not add line break after the custom message, rather displays <br> in the text : catch(Exception ex){ throw new Exception("My Custom Message." +"<br />"+ ex.Message ) } Any leads will be very appreciated. TIA |
#3
| |||
| |||
|
|
Me again. Nevermind, "\n" works instead. Never had thought that the compiler will translate into a <br> ! I'm good to go. On Dec 13, 1:49 pm, Aamir Ghanchi <aamirghan... (AT) gmail (DOT) com> wrote: Hi, Is there a way to format (or atleast insert line breaks) to the exception output. In the catch block I do something like as follows, but it does not add line break after the custom message, rather displays <br> in the text : catch(Exception ex){ throw new Exception("My Custom Message." +"<br />"+ ex.Message ) } Any leads will be very appreciated. TIA- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |