Author: markt
Date: Wed Jul 11 23:10:53 2012
New Revision: 1360468
URL: http://svn.apache.org/viewvc?rev=1360468&view=rev
Log:
Simplify (this class dates from pre-Java 1.4)
Modified:
tomcat/trunk/java/org/apache/catalina/connector/ClientAbortException.java
Modified:
tomcat/trunk/java/org/apache/catalina/connector/ClientAbortException.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/ClientAbortException.java?rev=1360468&r1=1360467&r2=1360468&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/ClientAbortException.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/connector/ClientAbortException.java
Wed Jul 11 23:10:53 2012
@@ -25,7 +25,6 @@ import java.io.IOException;
* @author Glenn L. Nielsen
* @version $Id$
*/
-
public final class ClientAbortException extends IOException {
private static final long serialVersionUID = 1L;
@@ -37,9 +36,7 @@ public final class ClientAbortException
* Construct a new ClientAbortException with no other information.
*/
public ClientAbortException() {
-
- this(null, null);
-
+ super();
}
@@ -49,9 +46,7 @@ public final class ClientAbortException
* @param message Message describing this exception
*/
public ClientAbortException(String message) {
-
- this(message, null);
-
+ super(message);
}
@@ -61,9 +56,7 @@ public final class ClientAbortException
* @param throwable Throwable that caused this exception
*/
public ClientAbortException(Throwable throwable) {
-
- this(null, throwable);
-
+ super(throwable);
}
@@ -75,73 +68,6 @@ public final class ClientAbortException
* @param throwable Throwable that caused this exception
*/
public ClientAbortException(String message, Throwable throwable) {
-
- super();
- this.message = message;
- this.throwable = throwable;
-
- }
-
-
- //------------------------------------------------------ Instance Variables
-
-
- /**
- * The error message passed to our constructor (if any)
- */
- protected String message = null;
-
-
- /**
- * The underlying exception or error passed to our constructor (if any)
- */
- protected Throwable throwable = null;
-
-
- //---------------------------------------------------------- Public Methods
-
-
- /**
- * Returns the message associated with this exception, if any.
- */
- @Override
- public String getMessage() {
-
- return (message);
-
+ super(message, throwable);
}
-
-
- /**
- * Returns the cause that caused this exception, if any.
- */
- @Override
- public Throwable getCause() {
-
- return (throwable);
-
- }
-
-
- /**
- * Return a formatted string that describes this exception.
- */
- @Override
- public String toString() {
-
- StringBuilder sb = new StringBuilder("ClientAbortException: ");
- if (message != null) {
- sb.append(message);
- if (throwable != null) {
- sb.append(": ");
- }
- }
- if (throwable != null) {
- sb.append(throwable.toString());
- }
- return (sb.toString());
-
- }
-
-
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]