Revision: 2407
http://archive-access.svn.sourceforge.net/archive-access/?rev=2407&view=rev
Author: bradtofel
Date: 2008-07-07 14:25:23 -0700 (Mon, 07 Jul 2008)
Log Message:
-----------
INITIAL REV: Exception indicating no resources are within the specified Anchor Window.
Added Paths:
-----------
trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/exception/AnchorWindowTooSmallException.java
Added: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/exception/AnchorWindowTooSmallException.java
===================================================================
--- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/exception/AnchorWindowTooSmallException.java (rev 0)
+++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/exception/AnchorWindowTooSmallException.java 2008-07-07 21:25:23 UTC (rev 2407)
@@ -0,0 +1,52 @@
+/* AnchorWindowTooSmallException
+ *
+ * $Id$
+ *
+ * Created on 4:16:45 PM Jul 3, 2008.
+ *
+ * Copyright (C) 2008 Internet Archive.
+ *
+ * This file is part of wayback.
+ *
+ * wayback is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * any later version.
+ *
+ * wayback 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 Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser Public License
+ * along with wayback; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+package org.archive.wayback.exception;
+
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ *
+ *
+ * @author brad
+ * @version $Date$, $Revision$
+ */
+public class AnchorWindowTooSmallException extends WaybackException {
+ private static final long serialVersionUID = 1L;
+ protected static final String ID = "anchorWindowTooSmall";
+ public AnchorWindowTooSmallException(String message) {
+ super(message,"AnchorWindow Too Small");
+ id = ID;
+ }
+ public AnchorWindowTooSmallException(String message,String details) {
+ super(message,"AnchorWindow Too Small",details);
+ id = ID;
+ }
+ /**
+ * @return the HTTP status code appropriate to this exception class.
+ */
+ public int getStatus() {
+ return HttpServletResponse.SC_PRECONDITION_FAILED;
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|