Package totalcross.io

Class FileNotFoundException

  • All Implemented Interfaces:
    java.io.Serializable

    public class FileNotFoundException
    extends IOException
    Thrown when a file was not found.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFileName()
      Returns the file name from the exception's message.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • FileNotFoundException

        public FileNotFoundException()
        Constructs an empty Exception.
      • FileNotFoundException

        public FileNotFoundException​(java.lang.String path)
        Constructs an exception with the given message.
    • Method Detail

      • getFileName

        public java.lang.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