cxzl25 commented on code in PR #2860:
URL: https://github.com/apache/incubator-kyuubi/pull/2860#discussion_r896374993


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/session/KyuubiSession.scala:
##########
@@ -34,4 +34,14 @@ abstract class KyuubiSession(
 
   def getSessionEvent: Option[KyuubiSessionEvent]
 
+  private[kyuubi] def handleSessionException(f: => Unit): Unit = {
+    try {
+      f
+    } catch {
+      case t: Throwable =>
+        getSessionEvent.foreach(_.exception = Some(t))
+        throw t
+    }
+  }
+

Review Comment:
   nit: remove empty line L46



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to