I would like to know how to print the string written when raising an exception.
For example if I use
raise ValidationError("RANDOM TEXT HERE");
How can I retreive "RANDOM TEXT HERE" from within the except section.
try:
...
except ValidationError:
...
// something like Java's ex.getMessage();
.....
Thank you