| | |
Get the Exception Error as string in try{} catch{}
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Mar 2008
Posts: 173
Reputation:
Solved Threads: 1
How is it possible to get the Exception Error as a string in the catch event ?
The thing is that I get an exception and now want to know what the problem is and what the exception is saying.
The thing is that I get an exception and now want to know what the problem is and what the exception is saying.
C++ Syntax (Toggle Plain Text)
try { //some code } catch(Exception ex) { //How to display this Exception as a string in MessageBox::Show(); ? }
•
•
Join Date: Mar 2008
Posts: 173
Reputation:
Solved Threads: 1
Found a solution:
C++ Syntax (Toggle Plain Text)
String^ GetException= ex2->ToString(); MessageBox::Show(GetException);
•
•
•
•
How is it possible to get the Exception Error as a string in the catch event ?
The thing is that I get an exception and now want to know what the problem is and what the exception is saying.
C++ Syntax (Toggle Plain Text)
try { //some code } catch(Exception ex) { //How to display this Exception as a string in MessageBox::Show(); ? }
![]() |
Similar Threads
- Exception Error. (C++)
- Exception error for heap (Java)
- Parse Error Before String Constant: Help (C)
- Unhandled Exception Error (C++)
- Unhandled Exception Error (VB.NET)
- exception error (VB.NET)
- Problem with database connection (JSP)
- BSOD - driver conflict? (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: c++ assignment
- Next Thread: PLS I NEED SOMEONE TO revise this, and comment.
Views: 386 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll dynamic encryption error file forms fstream function functions game givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linker linux loop looping loops map math matrix memory microsoft newbie news number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort stream string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






