LiveGraph
data visualisation and analysis framework

org.LiveGraph.dataFile.write
Class DataFileAlreadyExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.LiveGraph.dataFile.write.DataFileAlreadyExistsException
All Implemented Interfaces:
java.io.Serializable

public class DataFileAlreadyExistsException
extends java.lang.RuntimeException

Is thrown by DataStreamWriterFactory to indicate that a DataStreamWriter for a specified physical file stream cannot be created becasue the file already exists and cannot be overwritten. This class subclasses RuntimeException and not Exception in order to allow applications the convenience of not catching this exception if they have a good enough reason to believe that the data file does not already exist.

LiveGraph (http://www.live-graph.org).

Copyright (c) 2007-2008 by G. Paperin.

File: DataFileAlreadyExistsException.java

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following terms and conditions are met:

1. Redistributions of source code must retain the above acknowledgement of the LiveGraph project and its web-site, the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above acknowledgement of the LiveGraph project and its web-site, the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software or any derived software must display the following acknowledgement:
This product includes software developed by the LiveGraph project and its contributors.
(http://www.live-graph.org)

4. All advertising materials distributed in form of HTML pages or any other technology permitting active hyper-links that mention features or use of this software or any derived software must display the acknowledgment specified in condition 3 of this agreement, and in addition, include a visible and working hyper-link to the LiveGraph homepage (http://www.live-graph.org).

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version:
"2.0.beta01"
Author:
Greg Paperin (http://www.paperin.org)
See Also:
Serialized Form

Constructor Summary
DataFileAlreadyExistsException(java.io.File file)
          Creates a new DataFileAlreadyExistsException relating to the specified file path.
DataFileAlreadyExistsException(java.lang.String filePath)
          Creates a new DataFileAlreadyExistsException relating to the specified file path.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataFileAlreadyExistsException

public DataFileAlreadyExistsException(java.lang.String filePath)
Creates a new DataFileAlreadyExistsException relating to the specified file path.

Parameters:
filePath - A file path.

DataFileAlreadyExistsException

public DataFileAlreadyExistsException(java.io.File file)
Creates a new DataFileAlreadyExistsException relating to the specified file path.

Parameters:
file - A file.

LiveGraph
data visualisation and analysis framework