Telnet client
[folly.git] / folly / ExceptionWrapper.h
index 8284ec1fa538ecc20be819bdf7b58bfb818b6987..3f9f9688f754f8ce47a389a6308fca1d5a9b532e 100644 (file)
@@ -342,6 +342,11 @@ exception_wrapper make_exception_wrapper(Args&&... args) {
   return ew;
 }
 
+// For consistency with exceptionStr() functions in String.h
+inline fbstring exceptionStr(const exception_wrapper& ew) {
+  return ew.what();
+}
+
 /*
  * try_and_catch is a simple replacement for try {} catch(){} that allows you to
  * specify which derived exceptions you would like to catch and store in an