From fcab159112dfc32af8c6f6cf67120904eee9f64c Mon Sep 17 00:00:00 2001 From: Cheng Pan <379377944@qq.com> Date: Sun, 13 Jun 2021 22:41:25 +0800 Subject: [PATCH] [KYUUBI #692] Simplify construct of KyuubiException ### _Why are the changes needed?_ ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.readthedocs.io/en/latest/tools/testing.html#running-tests) locally before make a pull request Closes #692 from pan3793/construct. Closes #692 9803aee [Cheng Pan] Simplify construct of KyuubiException Authored-by: Cheng Pan <379377944@qq.com> Signed-off-by: Kent Yao --- .../src/main/scala/org/apache/kyuubi/KyuubiException.scala | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kyuubi-common/src/main/scala/org/apache/kyuubi/KyuubiException.scala b/kyuubi-common/src/main/scala/org/apache/kyuubi/KyuubiException.scala index d167ed8f2..38fa45d5d 100644 --- a/kyuubi-common/src/main/scala/org/apache/kyuubi/KyuubiException.scala +++ b/kyuubi-common/src/main/scala/org/apache/kyuubi/KyuubiException.scala @@ -17,7 +17,4 @@ package org.apache.kyuubi -class KyuubiException(message: String, cause: Throwable) extends Exception(message, cause) { - - def this(message: String) = this(message, null) -} +class KyuubiException(message: String, cause: Throwable = null) extends Exception(message, cause)