totalcross.io
Class FileNotFoundException

totalcross.lang.Object
  extended by totalcross.lang.Throwable
      extended by totalcross.lang.Exception
          extended by totalcross.io.IOException
              extended by totalcross.io.FileNotFoundException
All Implemented Interfaces:
java.io.Serializable

public class FileNotFoundException
extends IOException

Thrown when a file was not found.

See Also:
Serialized Form

Constructor Summary
FileNotFoundException()
          Constructs an empty Exception.
FileNotFoundException(String path)
          Constructs an exception with the given message.
 
Method Summary
 String getFileName()
          Returns the file name from the exception's message.
 
Methods inherited from class totalcross.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class totalcross.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileNotFoundException

public FileNotFoundException()
Constructs an empty Exception.


FileNotFoundException

public FileNotFoundException(String path)
Constructs an exception with the given message.

Method Detail

getFileName

public String getFileName()
Returns the file name from the exception's message. If there's no file name, returns an empty string.

Since:
TotalCross 1.15