try catch doesn't work
-
I don't know why but I created a class that inherits from
QExceptionand created a constructor withQByteArrayand override thewhatmethod, it compile just fine but when I try to catch the message from the exception class I created it doesn't work, my application just crashes and that is it, no message fromqDebugthat I put on thecatchblock appear and if I compile and run as debug mode it appears a message saying "abort() has been called" (something like that).What might be happening?
-
Have you implemented QException correctly?
How many bytes are you trying to store in your QByteArray? -
I don't know why but I created a class that inherits from
QExceptionand created a constructor withQByteArrayand override thewhatmethod, it compile just fine but when I try to catch the message from the exception class I created it doesn't work, my application just crashes and that is it, no message fromqDebugthat I put on thecatchblock appear and if I compile and run as debug mode it appears a message saying "abort() has been called" (something like that).What might be happening?