added unit test for exception/trigger error handling in __toString() method, updated docs