aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java
index 7a703557b5a..25290dac9b2 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java
@@ -19,14 +19,6 @@
*/
package org.sonar.api.utils;
-import javax.annotation.CheckForNull;
-import javax.annotation.Nullable;
-
-import java.util.Collection;
-import java.util.Collections;
-
-import static com.google.common.collect.Lists.newArrayList;
-
/**
* Runtime exception for "functional" errors. It aims to be displayed to end-users, without any technical information
* like stack traces.
@@ -35,19 +27,10 @@ import static com.google.common.collect.Lists.newArrayList;
*/
public class MessageException extends RuntimeException {
- private String l10nKey;
- private Collection<Object> l10nParams;
-
public MessageException(String s) {
super(s);
}
- public MessageException(@Nullable String message, @Nullable String l10nKey, @Nullable Object[] l10nParams) {
- super(message);
- this.l10nKey = l10nKey;
- this.l10nParams = l10nParams == null ? Collections.emptyList() : Collections.unmodifiableCollection(newArrayList(l10nParams));
- }
-
/**
* Does not fill in the stack trace
*
@@ -63,14 +46,5 @@ public class MessageException extends RuntimeException {
return getMessage();
}
- @CheckForNull
- public String l10nKey() {
- return l10nKey;
- }
-
- @CheckForNull
- public Collection<Object> l10nParams() {
- return l10nParams;
- }
}