You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by el...@apache.org on 2013/03/04 15:31:23 UTC
svn commit: r1452325 -
/labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/exception/EndOfFileExceededException.java
Author: elecharny
Date: Mon Mar 4 14:31:23 2013
New Revision: 1452325
URL: http://svn.apache.org/r1452325
Log:
Added an exception when we try to write beyond the file
Added:
labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/exception/EndOfFileExceededException.java
Added: labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/exception/EndOfFileExceededException.java
URL: http://svn.apache.org/viewvc/labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/exception/EndOfFileExceededException.java?rev=1452325&view=auto
==============================================================================
--- labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/exception/EndOfFileExceededException.java (added)
+++ labs/mavibot/trunk/mavibot/src/main/java/org/apache/mavibot/btree/exception/EndOfFileExceededException.java Mon Mar 4 14:31:23 2013
@@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.mavibot.btree.exception;
+
+
+import java.io.IOException;
+
+
+/**
+ * An exception thrown when we try to access a page beyond the file's size.
+ *
+ * @author <a href="mailto:labs@labs.apache.org">Mavibot labs Project</a>
+ */
+public class EndOfFileExceededException extends IOException
+{
+ /** The serial version UUID */
+ private static final long serialVersionUID = 1L;
+
+
+ /**
+ * Creates a new instance of EndOfFileExceededException.
+ */
+ public EndOfFileExceededException()
+ {
+ }
+
+
+ /**
+ * Creates a new instance of EndOfFileExceededException.
+ *
+ * @param explanation The message associated with the exception
+ */
+ public EndOfFileExceededException( String explanation )
+ {
+ super( explanation );
+ }
+
+
+ /**
+ * Creates a new instance of EndOfFileExceededException.
+ */
+ public EndOfFileExceededException( Throwable cause )
+ {
+ super( cause );
+ }
+
+
+ /**
+ * Creates a new instance of EndOfFileExceededException.
+ *
+ * @param explanation The message associated with the exception
+ * @param cause The root cause for this exception
+ */
+ public EndOfFileExceededException( String explanation, Throwable cause )
+ {
+ super( explanation, cause );
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org