You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2011/09/20 22:59:54 UTC

svn commit: r1173366 - /wicket/trunk/wicket-request/src/main/java/org/apache/wicket/request/http/flow/AbortWithHttpErrorCodeException.java

Author: ivaynberg
Date: Tue Sep 20 20:59:54 2011
New Revision: 1173366

URL: http://svn.apache.org/viewvc?rev=1173366&view=rev
Log:
added convenience constructor

Modified:
    wicket/trunk/wicket-request/src/main/java/org/apache/wicket/request/http/flow/AbortWithHttpErrorCodeException.java

Modified: wicket/trunk/wicket-request/src/main/java/org/apache/wicket/request/http/flow/AbortWithHttpErrorCodeException.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-request/src/main/java/org/apache/wicket/request/http/flow/AbortWithHttpErrorCodeException.java?rev=1173366&r1=1173365&r2=1173366&view=diff
==============================================================================
--- wicket/trunk/wicket-request/src/main/java/org/apache/wicket/request/http/flow/AbortWithHttpErrorCodeException.java (original)
+++ wicket/trunk/wicket-request/src/main/java/org/apache/wicket/request/http/flow/AbortWithHttpErrorCodeException.java Tue Sep 20 20:59:54 2011
@@ -36,7 +36,7 @@ public final class AbortWithHttpErrorCod
 	private final String message;
 
 	/**
-	 * Construct.
+	 * Constructor
 	 * 
 	 * @param errorCode
 	 *            the servlet error code; use one of the
@@ -53,6 +53,20 @@ public final class AbortWithHttpErrorCod
 	}
 
 	/**
+	 * Constructor
+	 * 
+	 * @param errorCode
+	 *            the servlet error code; use one of the
+	 *            {@link javax.servlet.http.HttpServletResponse} constants
+	 * @see javax.servlet.http.HttpServletResponse
+	 */
+	public AbortWithHttpErrorCodeException(final int errorCode)
+	{
+		this(errorCode, null);
+	}
+
+
+	/**
 	 * Gets the error code.
 	 * 
 	 * @return errorCode