Open asika32764 opened 11 years ago
I think I would return $e->getMessage()
.
I was thinking the same thing, @eddieajau.
So how will the calling class know if the string that it receives is the representation of the object or the representation of an exception message ? Would you check the string for XML or something ? ...
When I using
MysqlExporter
to export a table, if this table not exists, theDatabaseDriver
will throw an exception.But php return this message:
If I modified
__toString()
method:It works and return the correct exception message.
But I don't know how to fix this problem in a right way.