summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2009-04-29 08:57:34 (EDT)
committerCarsten Drossel2009-04-29 08:57:34 (EDT)
commitda83b8526d97d94c2f3ff25ca1460c6a1484060f (patch)
treefba64bf47e0a0c88a48a5a40fa470e3d091651ef
parentfbb0ba8ef257022218cb54816309621f1d9490cd (diff)
downloadorg.eclipse.riena-da83b8526d97d94c2f3ff25ca1460c6a1484060f.zip
org.eclipse.riena-da83b8526d97d94c2f3ff25ca1460c6a1484060f.tar.gz
org.eclipse.riena-da83b8526d97d94c2f3ff25ca1460c6a1484060f.tar.bz2
removing obsolete code from class Failure
-rw-r--r--org.eclipse.riena.communication.core/src/org/eclipse/riena/communication/core/RemoteFailure.java12
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/cache/CacheFailure.java28
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/exception/Failure.java358
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/logging/Log4jLogListener.java3
-rw-r--r--org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/UIViewFailure.java39
-rw-r--r--org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/ExtensionPointFailure.java27
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/NotAuthorizedFailure.java28
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SecurityFailure.java44
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationFailure.java43
-rw-r--r--org.eclipse.riena.security.server/src/org/eclipse/riena/security/server/session/SessionFailure.java44
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/communication/core/exception/ExceptionClientITest.java14
-rw-r--r--org.eclipse.riena.ui.ridgets/src/org/eclipse/riena/ui/ridgets/UIBindingFailure.java27
12 files changed, 11 insertions, 656 deletions
diff --git a/org.eclipse.riena.communication.core/src/org/eclipse/riena/communication/core/RemoteFailure.java b/org.eclipse.riena.communication.core/src/org/eclipse/riena/communication/core/RemoteFailure.java
index 65a85ee..3214f7e 100644
--- a/org.eclipse.riena.communication.core/src/org/eclipse/riena/communication/core/RemoteFailure.java
+++ b/org.eclipse.riena.communication.core/src/org/eclipse/riena/communication/core/RemoteFailure.java
@@ -19,18 +19,6 @@ public class RemoteFailure extends Failure {
private static final long serialVersionUID = -7485563916742344058L;
- public RemoteFailure(String msg, Object arg1, Object arg2, Throwable cause) {
- super(msg, arg1, arg2, cause);
- }
-
- public RemoteFailure(String msg, Object arg1, Throwable cause) {
- super(msg, arg1, cause);
- }
-
- public RemoteFailure(String msg, Object[] args, Throwable cause) {
- super(msg, args, cause);
- }
-
public RemoteFailure(String msg, Throwable cause) {
super(msg, cause);
}
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/cache/CacheFailure.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/cache/CacheFailure.java
index 29d3ed6..fc5ff33 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/cache/CacheFailure.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/cache/CacheFailure.java
@@ -30,34 +30,6 @@ public class CacheFailure extends Failure {
/**
* @param msg
- * @param arg1
- * @param arg2
- * @param cause
- */
- public CacheFailure(String msg, Object arg1, Object arg2, Throwable cause) {
- super(msg, arg1, arg2, cause);
- }
-
- /**
- * @param msg
- * @param arg1
- * @param cause
- */
- public CacheFailure(String msg, Object arg1, Throwable cause) {
- super(msg, arg1, cause);
- }
-
- /**
- * @param msg
- * @param args
- * @param cause
- */
- public CacheFailure(String msg, Object[] args, Throwable cause) {
- super(msg, args, cause);
- }
-
- /**
- * @param msg
* @param cause
*/
public CacheFailure(String msg, Throwable cause) {
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/exception/Failure.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/exception/Failure.java
index c2330a3..cdc9f3a 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/exception/Failure.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/exception/Failure.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.riena.core.exception;
-import java.text.MessageFormat;
import java.util.Date;
/**
@@ -23,51 +22,10 @@ import java.util.Date;
*/
public abstract class Failure extends RuntimeException {
- private static final long serialVersionUID = -4261070069626717501L;
- private static final String UNKNOWN = "<unknown>"; //$NON-NLS-1$
- private static final String NONE = "<none>"; //$NON-NLS-1$
- private static final String NO_DETAILS = "No details."; //$NON-NLS-1$
+ private static final long serialVersionUID = -1945022495993627769L;
- /**
- * version ID (controlled by CVS).
- */
- public static final String VERSION_ID = "$Id$"; //$NON-NLS-1$
-
- private String javaVersion = UNKNOWN;
-
- private String callerClassName = UNKNOWN;
- private String callerClassVersion = UNKNOWN;
- private String callerMethodName = UNKNOWN;
-
- private String id = ""; //$NON-NLS-1$
private Date timestamp;
- private String clientMsg = ""; //$NON-NLS-1$
- private String serverMsg = ""; //$NON-NLS-1$
-
- private String nativeErrorCode = NONE;
-
- private static final int HEX_BASE = 16;
-
- // package protected for unit test!!
- static final String[] MESSAGE_PART_NAMES = { "serverMsg", "cause", "id", "timestamp", "callerClassName", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
- "callerClassVersion", "callerMethodName", "nativeErrorCode", "clientMsg", "javaVersion", "stacktrace" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
-
- /**
- * constructor.
- *
- * @param cause
- * exception which has caused this Failure.
- * @param msg
- * message text or message code.
- * @param args
- * message parameters.
- */
- public Failure(String msg, Object[] args, Throwable cause) {
- super(msg, cause);
- setDetails(msg, args);
- }
-
/**
* constructor.
*
@@ -75,15 +33,8 @@ public abstract class Failure extends RuntimeException {
* message text or message code.
*/
public Failure(String msg) {
- // Note: In the case that no cause is given it neccesary to call the
- // super constructor
- // with the same signature. Otherwise it would not be possible to call
- // the
- // initCause() method without getting an IllegalStateException!!!!
- // Every setting of cause (also with null) in Throwable will lock the
- // cause field of Throwable!
super(msg);
- setDetails(msg, null);
+ setDetails();
}
/**
@@ -95,169 +46,15 @@ public abstract class Failure extends RuntimeException {
* message text or message code.
*/
public Failure(String msg, Throwable cause) {
- this(msg, null, cause);
- }
-
- /**
- * constructor.
- *
- * @param cause
- * exception which has caused this Failure.
- * @param msg
- * message text or message code.
- * @param arg1
- * single message parameter.
- */
- public Failure(String msg, Object arg1, Throwable cause) {
- this(msg, new Object[] { arg1 }, cause);
- }
-
- /**
- * constructor.
- *
- * @param cause
- * exception which has caused this Failure.
- * @param msg
- * message text or message code.
- * @param arg1
- * message parameter 1.
- * @param arg2
- * message parameter 2.
- */
- public Failure(String msg, Object arg1, Object arg2, Throwable cause) {
- this(msg, new Object[] { arg1, arg2 }, cause);
+ super(msg, cause);
+ setDetails();
}
/**
* determine and set the exception details.
*/
- private void setDetails(String msg, Object[] args) {
+ private void setDetails() {
setTimestamp(new Date());
- // setId(Long.toString(ExceptionHelper.generateFailureID(),
- // HEX_BASE).toUpperCase(Locale.getDefault()));
- // setJavaVersion(ExceptionHelper.getJavaVersion());
- // setServerMsg(getFormattedMsgText(msg, args));
- // setClientMsg(ExceptionHelper.getDefaultClientMsg().replaceAll(
- // ExceptionHelper.PLACEHOLDER_FAILURE_ID_REGEX,
- // getId()));
- // setCallerClassName(ExceptionHelper.getCallerByRef(this));
- //setCallerMethodName(ExceptionHelper.getCallerMethod(getCallerClassName
- // ()));
- //setCallerClassVersion(ExceptionHelper.getVersionId(getCallerClassName(
- // )));
- }
-
- /**
- * Format Messagetext.
- *
- * @param msg
- * message text or code.
- * @return formatted message text.
- */
- private String getFormattedMsgText(String msg, Object[] args) {
- if (msg == null || args == null) {
- return msg;
- } else {
- return new MessageFormat(msg).format(args);
- }
- }
-
- /**
- * Get value of attribute <code>javaVersion</code>.
- *
- * @return value of attribute javaVersion.
- */
- public String getJavaVersion() {
- return javaVersion;
- }
-
- /**
- * Set value of attribute <code>javaVersion</code>.
- *
- * @param javaVersion
- * the java version.
- */
- private void setJavaVersion(String javaVersion) {
- this.javaVersion = javaVersion;
- }
-
- /**
- * Set value of attribute <code>callerClassName</code>.
- *
- * @param callerClassName
- * the parameter value of caller class name.
- */
- private void setCallerClassName(String callerClassName) {
- this.callerClassName = callerClassName;
- }
-
- /**
- * Get value of attribute <code>callerClassName</code>.
- *
- * @return value of attribute caller class name.
- */
- public String getCallerClassName() {
- return this.callerClassName;
- }
-
- /**
- * Set value of attribute <code>callerClassVersion</code>.
- *
- * @param callerClassVersion
- * parameter value of caller class version.
- */
- private void setCallerClassVersion(String callerClassVersion) {
- this.callerClassVersion = callerClassVersion;
- }
-
- /**
- * Get value of attribute <code>callerClassVersion</code>.
- *
- * @return value of attribute caller class version.
- */
- public String getCallerClassVersion() {
- return this.callerClassVersion;
- }
-
- /**
- * Set value of attribute <code>callerMethodName</code>.
- *
- * @param callerMethodName
- * parameter value of caller method name.
- */
- private void setCallerMethodName(String callerMethodName) {
- this.callerMethodName = callerMethodName;
- }
-
- /**
- * Get value of attribute caller method name.
- *
- * @return value of attribute caller method name.
- */
- public String getCallerMethodName() {
- return this.callerMethodName;
- }
-
- /**
- * Set value of attribute <code>id</code>.
- *
- * @param id
- * parameter value of id.
- */
- private void setId(String id) {
- this.id = id;
- }
-
- /**
- * Get value of attribute <code>id</code>. The <code>id</code> is an unique
- * identifier for this Failure instance. The <code>id</code> is embedded
- * inside the server and client message text and can be used as a reference
- * (i.e. inside the logging file) to address the problem.
- *
- * @return value of attribute id.
- */
- public String getId() {
- return this.id;
}
/**
@@ -279,149 +76,4 @@ public abstract class Failure extends RuntimeException {
return new Date(this.timestamp.getTime());
}
- /**
- * Set value of attribute <code>clientMsg</code>.
- *
- * @param clientMsg
- * parameter value of clientMsg.
- */
- public void setClientMsg(String clientMsg) {
- this.clientMsg = clientMsg;
- }
-
- /**
- * Get value of attribute <code>clientMsg</code>.
- *
- * @return value of attribute clientMsg.
- */
- public String getClientMsg() {
- return this.clientMsg;
- }
-
- /**
- * Set value of attribute <code>serverMsg</code>.
- *
- * @param serverMsg
- * parameter value of serverMsg.
- */
- public void setServerMsg(String serverMsg) {
- this.serverMsg = serverMsg;
- }
-
- /**
- * Get value of attribute <code>serverMsg</code>.
- *
- * @return value of attribute serverMsg.
- */
- public String getServerMsg() {
- if (this.serverMsg == null) {
- return ""; //$NON-NLS-1$
- } else {
- return this.serverMsg;
- }
- }
-
- /**
- * Set value of attribute <code>nativeErrorCode</code>.
- *
- * @param nativeErrorCode
- * parameter value of native error code.
- */
- public void setNativeErrorCode(String nativeErrorCode) {
- this.nativeErrorCode = nativeErrorCode;
- }
-
- /**
- * Get value of attribute <code>nativeErrorCode</code>.
- *
- * @return value of attribute native error code.
- */
- public String getNativeErrorCode() {
- return this.nativeErrorCode;
- }
-
- /**
- * Get the message part names. Note: This method makes a copy of an internal
- * string array, to protect it from malicious changes!
- *
- * @return the message part names.
- */
- public static String[] getMessagePartNames() {
- String[] copy = new String[MESSAGE_PART_NAMES.length];
- System.arraycopy(MESSAGE_PART_NAMES, 0, copy, 0, MESSAGE_PART_NAMES.length);
- return copy;
- }
-
- /**
- * @see java.lang.Object#toString()
- */
- // commented out so that we see the toString from Throwable until we have a
- // decent implementation TODO
- // public String toString() {
- //
- // StringBuilder failureText = new StringBuilder(this.getClass().getName());
- // failureText.append(":\n - serverMsg \t\t\t= ");
- // failureText.append(getServerMsg());
- // failureText.append("\n - cause \t\t\t\t= ");
- // failureText.append(getCauseClassName());
- // failureText.append("\n - id \t\t\t\t\t= ");
- // failureText.append(getId());
- // failureText.append("\n - timestamp \t\t\t= ");
- // failureText.append(DateFormat.getInstance().format(timestamp));
- // failureText.append("\n - callerClassName \t= ");
- // failureText.append(getCallerClassName());
- // failureText.append("\n - callerClassVersion \t= ");
- // failureText.append(getCallerClassVersion());
- // failureText.append("\n - callerMethodName \t= ");
- // failureText.append(getCallerMethodName());
- // failureText.append("\n - nativeErrorCode \t= ");
- // failureText.append(getNativeErrorCode());
- // failureText.append("\n - clientMsg \t\t\t= ");
- // failureText.append(getClientMsg());
- // failureText.append("\n - javaVersion \t\t= ");
- // failureText.append(getJavaVersion());
- // return failureText.toString();
- // }
- private String getCauseClassName() {
- if (getCause() != null) {
- return getCause().getClass().getName();
- } else {
- return null;
- }
-
- }
-
- /**
- * Get the full stacktrace of all nested exceptions chained to this Failure
- * instance.
- *
- * @return the full stacktrace in string representation.
- */
- // public String getRecursiveStacktrace() {
- // return ExceptionHelper.getRecursiveStacktrace(this);
- // }
- /**
- * This method is called to clear details that were automatically set by the
- * constructor but are in fact unknown.
- */
- public void clearDetails() {
- callerClassName = UNKNOWN;
- callerClassVersion = UNKNOWN;
- callerMethodName = UNKNOWN;
- nativeErrorCode = UNKNOWN;
- clientMsg = NO_DETAILS;
- javaVersion = UNKNOWN;
- }
-
- /**
- * @param args
- * @return
- */
- private static Object nullify(Object[] args) {
- if (args == null || args.length == 0) {
- return null;
- } else {
- return args[0];
- }
- }
}
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/Log4jLogListener.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/Log4jLogListener.java
index 6b8394d..9ad4526 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/Log4jLogListener.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/Log4jLogListener.java
@@ -223,6 +223,9 @@ public class Log4jLogListener implements LogListener, IExecutableExtension {
* A generic custom log level for log4j.
*/
private static final class CustomLevel extends Level {
+
+ private static final long serialVersionUID = 8076188016013250132L;
+
private static Map<Integer, CustomLevel> map = new HashMap<Integer, CustomLevel>();
private static final int LOG4J_LEVEL = Priority.FATAL_INT * 2;
// This value is duplicated here (because of access restrictions) from log4j SyslogAppender
diff --git a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/UIViewFailure.java b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/UIViewFailure.java
index 24615a2..e9c5ad9 100644
--- a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/UIViewFailure.java
+++ b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/UIViewFailure.java
@@ -23,19 +23,6 @@ public class UIViewFailure extends Failure {
private static final long serialVersionUID = 7955739836963025929L;
/**
- *
- * @param msg
- * the message
- * @param args
- * some argument
- * @param cause
- * the cause
- */
- public UIViewFailure(String msg, Object[] args, Throwable cause) {
- super(msg, args, cause);
- }
-
- /**
* Failure with a simple message.
*
* @param msg
@@ -55,30 +42,4 @@ public class UIViewFailure extends Failure {
super(msg, cause);
}
- /**
- * @param msg
- * the message
- * @param arg1
- * some argument
- * @param cause
- * the cause
- */
- public UIViewFailure(String msg, Object arg1, Throwable cause) {
- super(msg, arg1, cause);
- }
-
- /**
- * @param msg
- * the message
- * @param arg1
- * some argument
- * @param arg2
- * another argument
- * @param cause
- * the cause
- *
- */
- public UIViewFailure(String msg, Object arg1, Object arg2, Throwable cause) {
- super(msg, arg1, arg2, cause);
- }
}
diff --git a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/ExtensionPointFailure.java b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/ExtensionPointFailure.java
index 06ad5bc..0666341 100644
--- a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/ExtensionPointFailure.java
+++ b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/ExtensionPointFailure.java
@@ -24,15 +24,6 @@ public class ExtensionPointFailure extends Failure {
/**
* @param msg
- * @param args
- * @param cause
- */
- public ExtensionPointFailure(String msg, Object[] args, Throwable cause) {
- super(msg, args, cause);
- }
-
- /**
- * @param msg
*/
public ExtensionPointFailure(String msg) {
super(msg);
@@ -46,22 +37,4 @@ public class ExtensionPointFailure extends Failure {
super(msg, cause);
}
- /**
- * @param msg
- * @param arg1
- * @param cause
- */
- public ExtensionPointFailure(String msg, Object arg1, Throwable cause) {
- super(msg, arg1, cause);
- }
-
- /**
- * @param msg
- * @param arg1
- * @param arg2
- * @param cause
- */
- public ExtensionPointFailure(String msg, Object arg1, Object arg2, Throwable cause) {
- super(msg, arg1, arg2, cause);
- }
}
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/NotAuthorizedFailure.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/NotAuthorizedFailure.java
index dda1587..ad7a246 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/NotAuthorizedFailure.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/NotAuthorizedFailure.java
@@ -16,15 +16,6 @@ public class NotAuthorizedFailure extends SecurityFailure {
/**
* @param msg
- * @param args
- * @param cause
- */
- public NotAuthorizedFailure(String msg, Object[] args, Throwable cause) {
- super(msg, args, cause);
- }
-
- /**
- * @param msg
*/
public NotAuthorizedFailure(String msg) {
super(msg);
@@ -38,23 +29,4 @@ public class NotAuthorizedFailure extends SecurityFailure {
super(msg, cause);
}
- /**
- * @param msg
- * @param arg1
- * @param cause
- */
- public NotAuthorizedFailure(String msg, Object arg1, Throwable cause) {
- super(msg, arg1, cause);
- }
-
- /**
- * @param msg
- * @param arg1
- * @param arg2
- * @param cause
- */
- public NotAuthorizedFailure(String msg, Object arg1, Object arg2, Throwable cause) {
- super(msg, arg1, arg2, cause);
- }
-
}
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SecurityFailure.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SecurityFailure.java
index 10ccbb6..a597a18 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SecurityFailure.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SecurityFailure.java
@@ -25,20 +25,6 @@ public class SecurityFailure extends Failure {
*
* @param msg
* message text or message code
- * @param args
- * message parameters
- * @param cause
- * exception which has caused this Failure
- */
- public SecurityFailure(String msg, Object[] args, Throwable cause) {
- super(msg, args, cause);
- }
-
- /**
- * Creates a new instance of <code>SecurityFailure</code>
- *
- * @param msg
- * message text or message code
*/
public SecurityFailure(String msg) {
super(msg);
@@ -56,34 +42,4 @@ public class SecurityFailure extends Failure {
super(msg, cause);
}
- /**
- * Creates a new instance of <code>SecurityFailure</code>
- *
- * @param msg
- * message text or message code
- * @param arg1
- * message parameter 1
- * @param cause
- * exception which has caused this Failure
- */
- public SecurityFailure(String msg, Object arg1, Throwable cause) {
- super(msg, arg1, cause);
- }
-
- /**
- * Creates a new instance of <code>SecurityFailure</code>
- *
- * @param msg
- * message text or message code
- * @param arg1
- * message parameter 1
- * @param arg2
- * message parameter 2
- * @param cause
- * exception which has caused this Failure
- */
- public SecurityFailure(String msg, Object arg1, Object arg2, Throwable cause) {
- super(msg, arg1, arg2, cause);
- }
-
}
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationFailure.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationFailure.java
index c84660d..46aa2b1 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationFailure.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationFailure.java
@@ -43,47 +43,4 @@ public class AuthenticationFailure extends SecurityFailure {
super(message, e);
}
- /**
- * Creates a new instance of <code>AuthenticationFailure</code>
- *
- * @param msg
- * message text or message code
- * @param arg1
- * message parameter 1
- * @param arg2
- * message parameter 2
- * @param cause
- * exception which has caused this Failure
- */
- public AuthenticationFailure(String msg, Object arg1, Object arg2, Throwable cause) {
- super(msg, arg1, arg2, cause);
- }
-
- /**
- * Creates a new instance of <code>AuthenticationFailure</code>
- *
- * @param msg
- * message text or message code
- * @param arg1
- * message parameter 1
- * @param cause
- * exception which has caused this Failure
- */
- public AuthenticationFailure(String msg, Object arg1, Throwable cause) {
- super(msg, arg1, cause);
- }
-
- /**
- * Creates a new instance of <code>AuthenticationFailure</code>
- *
- * @param msg
- * message text or message code
- * @param args
- * message parameters
- * @param cause
- * exception which has caused this Failure
- */
- public AuthenticationFailure(String msg, Object[] args, Throwable cause) {
- super(msg, args, cause);
- }
}
diff --git a/org.eclipse.riena.security.server/src/org/eclipse/riena/security/server/session/SessionFailure.java b/org.eclipse.riena.security.server/src/org/eclipse/riena/security/server/session/SessionFailure.java
index 1e46b49..82852ff 100644
--- a/org.eclipse.riena.security.server/src/org/eclipse/riena/security/server/session/SessionFailure.java
+++ b/org.eclipse.riena.security.server/src/org/eclipse/riena/security/server/session/SessionFailure.java
@@ -25,20 +25,6 @@ public class SessionFailure extends SecurityFailure {
*
* @param msg
* message text or message code
- * @param args
- * message parameters
- * @param cause
- * exception which has caused this Failure
- */
- public SessionFailure(String msg, Object[] args, Throwable cause) {
- super(msg, args, cause);
- }
-
- /**
- * Creates a new instance of <code>SessionFailure</code>
- *
- * @param msg
- * message text or message code
*/
public SessionFailure(String msg) {
super(msg);
@@ -56,34 +42,4 @@ public class SessionFailure extends SecurityFailure {
super(msg, cause);
}
- /**
- * Creates a new instance of <code>SessionFailure</code>
- *
- * @param msg
- * message text or message code
- * @param arg1
- * message parameter 1
- * @param cause
- * exception which has caused this Failure
- */
- public SessionFailure(String msg, Object arg1, Throwable cause) {
- super(msg, arg1, cause);
- }
-
- /**
- * Creates a new instance of <code>SecurityFailure</code>
- *
- * @param msg
- * message text or message code
- * @param arg1
- * message parameter 1
- * @param arg2
- * message parameter 2
- * @param cause
- * exception which has caused this Failure
- */
- public SessionFailure(String msg, Object arg1, Object arg2, Throwable cause) {
- super(msg, arg1, arg2, cause);
- }
-
}
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/communication/core/exception/ExceptionClientITest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/communication/core/exception/ExceptionClientITest.java
index a220a0d..de91c5d 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/communication/core/exception/ExceptionClientITest.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/communication/core/exception/ExceptionClientITest.java
@@ -12,7 +12,10 @@ package org.eclipse.riena.communication.core.exception;
import java.io.IOException;
+import org.osgi.service.log.LogService;
+
import org.eclipse.equinox.log.Logger;
+
import org.eclipse.riena.communication.core.IRemoteServiceRegistration;
import org.eclipse.riena.communication.core.RemoteFailure;
import org.eclipse.riena.communication.core.factory.Register;
@@ -23,7 +26,6 @@ import org.eclipse.riena.internal.tests.Activator;
import org.eclipse.riena.sample.app.common.exception.IExceptionService;
import org.eclipse.riena.tests.RienaTestCase;
import org.eclipse.riena.tests.collect.IntegrationTestCase;
-import org.osgi.service.log.LogService;
/**
* This class is an test client for the exception service.
@@ -187,12 +189,7 @@ public class ExceptionClientITest extends RienaTestCase {
"ExceptionService: Here is your requested org.eclipse.riena.core.exception.ExceptionFailure...") > -1);
// in this case even the cause is supposed to be null.
assertNull(failure.getCause());
- assertNotNull(failure.getId());
assertNotNull(failure.getTimestamp());
- assertNotNull(failure.getCallerClassName());
- assertNotNull(failure.getCallerMethodName());
- // assertEquals( failure.getCallerMethodName(), "throwException" );
- assertNotNull(failure.getJavaVersion());
assertNotNull(failure.getStackTrace());
assertTrue(failure.getStackTrace().length > 10);
}
@@ -216,12 +213,7 @@ public class ExceptionClientITest extends RienaTestCase {
"ExceptionService: Here is your requested org.eclipse.riena.communication.core.RemoteFailure...") > -1);
// in this case even the cause is supposed to be null.
assertNull(failure.getCause());
- assertNotNull(failure.getId());
assertNotNull(failure.getTimestamp());
- assertNotNull(failure.getCallerClassName());
- assertNotNull(failure.getCallerMethodName());
- // assertEquals( failure.getCallerMethodName(), "throwException" );
- assertNotNull(failure.getJavaVersion());
assertNotNull(failure.getStackTrace());
}
}
diff --git a/org.eclipse.riena.ui.ridgets/src/org/eclipse/riena/ui/ridgets/UIBindingFailure.java b/org.eclipse.riena.ui.ridgets/src/org/eclipse/riena/ui/ridgets/UIBindingFailure.java
index da1f645..7a2f8cf 100644
--- a/org.eclipse.riena.ui.ridgets/src/org/eclipse/riena/ui/ridgets/UIBindingFailure.java
+++ b/org.eclipse.riena.ui.ridgets/src/org/eclipse/riena/ui/ridgets/UIBindingFailure.java
@@ -21,15 +21,6 @@ public class UIBindingFailure extends Failure {
/**
* @param msg
- * @param args
- * @param cause
- */
- public UIBindingFailure(String msg, Object[] args, Throwable cause) {
- super(msg, args, cause);
- }
-
- /**
- * @param msg
*/
public UIBindingFailure(String msg) {
super(msg);
@@ -43,22 +34,4 @@ public class UIBindingFailure extends Failure {
super(msg, cause);
}
- /**
- * @param msg
- * @param arg1
- * @param cause
- */
- public UIBindingFailure(String msg, Object arg1, Throwable cause) {
- super(msg, arg1, cause);
- }
-
- /**
- * @param msg
- * @param arg1
- * @param arg2
- * @param cause
- */
- public UIBindingFailure(String msg, Object arg1, Object arg2, Throwable cause) {
- super(msg, arg1, arg2, cause);
- }
}