From: Sébastien Lesaint Date: Tue, 18 Dec 2018 08:43:28 +0000 (+0100) Subject: SONARCLOUD-193 move TypedException to correct package X-Git-Tag: 7.6~206 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc6e6aaa181de31d5692177e317229e82c5e0604;p=sonarqube.git SONARCLOUD-193 move TypedException to correct package --- diff --git a/server/sonar-ce-task/src/main/java/org/sonar/ce/task/TypedException.java b/server/sonar-ce-task/src/main/java/org/sonar/ce/task/TypedException.java new file mode 100644 index 00000000000..2b89d918a3e --- /dev/null +++ b/server/sonar-ce-task/src/main/java/org/sonar/ce/task/TypedException.java @@ -0,0 +1,33 @@ +/* + * SonarQube + * Copyright (C) 2009-2018 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +package org.sonar.ce.task; + +/** + * This interface is implemented by the exceptions + * that provide a type of error when failing + * a Compute Engine task. + * The error type is persisted and available in + * the tasks returned by the web services api/ce. + */ +public interface TypedException { + + String getType(); + +} diff --git a/server/sonar-ce-task/src/main/java/org/sonar/ce/task/step/TypedException.java b/server/sonar-ce-task/src/main/java/org/sonar/ce/task/step/TypedException.java deleted file mode 100644 index cc8680828f1..00000000000 --- a/server/sonar-ce-task/src/main/java/org/sonar/ce/task/step/TypedException.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2018 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonar.ce.task.step; - -/** - * This interface is implemented by the exceptions - * that provide a type of error when failing - * a Compute Engine task. - * The error type is persisted and available in - * the tasks returned by the web services api/ce. - */ -public interface TypedException { - - String getType(); - -} diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/queue/InternalCeQueueImpl.java b/server/sonar-ce/src/main/java/org/sonar/ce/queue/InternalCeQueueImpl.java index 6259599a49e..17ca3b6f474 100644 --- a/server/sonar-ce/src/main/java/org/sonar/ce/queue/InternalCeQueueImpl.java +++ b/server/sonar-ce/src/main/java/org/sonar/ce/queue/InternalCeQueueImpl.java @@ -38,7 +38,7 @@ import org.sonar.ce.monitoring.CEQueueStatus; import org.sonar.ce.task.CeTask; import org.sonar.ce.task.CeTaskResult; import org.sonar.ce.task.projectanalysis.component.VisitException; -import org.sonar.ce.task.step.TypedException; +import org.sonar.ce.task.TypedException; import org.sonar.core.util.UuidFactory; import org.sonar.db.DbClient; import org.sonar.db.DbSession; diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/queue/InternalCeQueueImplTest.java b/server/sonar-ce/src/test/java/org/sonar/ce/queue/InternalCeQueueImplTest.java index 68ed1ff8135..d6afc3a1380 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/queue/InternalCeQueueImplTest.java +++ b/server/sonar-ce/src/test/java/org/sonar/ce/queue/InternalCeQueueImplTest.java @@ -36,7 +36,7 @@ import org.sonar.ce.monitoring.CEQueueStatus; import org.sonar.ce.monitoring.CEQueueStatusImpl; import org.sonar.ce.task.CeTask; import org.sonar.ce.task.CeTaskResult; -import org.sonar.ce.task.step.TypedException; +import org.sonar.ce.task.TypedException; import org.sonar.core.util.UuidFactory; import org.sonar.core.util.UuidFactoryImpl; import org.sonar.db.DbSession;