You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xh...@apache.org on 2019/03/28 14:00:42 UTC

[incubator-pinot] branch master updated: [TE] udpate the detector exceptions (#4023)

This is an automated email from the ASF dual-hosted git repository.

xhsun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 8d9bf8c  [TE] udpate the detector exceptions (#4023)
8d9bf8c is described below

commit 8d9bf8c4bf8cc8e874398033896b5742a68661f7
Author: Xiaohui Sun <xh...@linkedin.com>
AuthorDate: Thu Mar 28 07:00:36 2019 -0700

    [TE] udpate the detector exceptions (#4023)
---
 .../exception/DetectorDataInsufficientException.java    | 17 +++++++++++++++--
 .../spi/exception/DetectorDataWrongFormatException.java | 17 +++++++++++++++--
 .../detection/spi/exception/DetectorException.java      | 17 +++++++++++++++--
 3 files changed, 45 insertions(+), 6 deletions(-)

diff --git a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorDataInsufficientException.java b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorDataInsufficientException.java
index 644aece..f65223c 100644
--- a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorDataInsufficientException.java
+++ b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorDataInsufficientException.java
@@ -23,10 +23,23 @@ package org.apache.pinot.thirdeye.detection.spi.exception;
  * Data is insufficient to run detection.
  */
 public class DetectorDataInsufficientException extends DetectorException {
-  public DetectorDataInsufficientException(Exception ex) {
-    super(ex);
+  public DetectorDataInsufficientException(Throwable cause) {
+    super(cause);
   }
 
+  public DetectorDataInsufficientException() {
+    super();
+  }
+
+  public DetectorDataInsufficientException(String message) {
+    super(message);
+  }
+
+  public DetectorDataInsufficientException(String message, Throwable cause) {
+    super(message, cause);
+  }
+
+
   @Override
   public String toString() {
     return String.format("Data is insufficient to run detection.");
diff --git a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorDataWrongFormatException.java b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorDataWrongFormatException.java
index abee239..a3f72fb 100644
--- a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorDataWrongFormatException.java
+++ b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorDataWrongFormatException.java
@@ -20,10 +20,23 @@
 package org.apache.pinot.thirdeye.detection.spi.exception;
 
 public class DetectorDataWrongFormatException extends DetectorException {
-  public DetectorDataWrongFormatException(Exception ex) {
-    super(ex);
+  public DetectorDataWrongFormatException(Throwable cause) {
+    super(cause);
   }
 
+  public DetectorDataWrongFormatException() {
+    super();
+  }
+
+  public DetectorDataWrongFormatException(String message) {
+    super(message);
+  }
+
+  public DetectorDataWrongFormatException(String message, Throwable cause) {
+    super(message, cause);
+  }
+
+
   @Override
   public String toString() {
     return String.format("Data format is wrong.");
diff --git a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorException.java b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorException.java
index 08de1b0..a329e2b 100644
--- a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorException.java
+++ b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/spi/exception/DetectorException.java
@@ -23,7 +23,20 @@ package org.apache.pinot.thirdeye.detection.spi.exception;
  * Base detector exception class.
  */
 public class DetectorException extends Exception {
-  public DetectorException(Exception ex) {
-    super(ex);
+  public DetectorException(Throwable cause) {
+    super(cause);
   }
+
+  public DetectorException() {
+    super();
+  }
+
+  public DetectorException(String message) {
+    super(message);
+  }
+
+  public DetectorException(String message, Throwable cause) {
+    super(message, cause);
+  }
+
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org