Class OSFileNotFoundException

  • All Implemented Interfaces:
    java.io.Serializable

    public class OSFileNotFoundException
    extends java.io.FileNotFoundException
    Signals that an attempt to find a Ghidra "OS-file" (native binary) has failed.

    This exception provides a consistent way to display information about the missing OS-file that will aid in error reporting and debugging.

    See Also:
    Serialized Form
    • Constructor Detail

      • OSFileNotFoundException

        public OSFileNotFoundException​(Platform platform,
                                       java.lang.String moduleName,
                                       java.lang.String fileName)
        Parameters:
        platform - The Platform associated with this exception
        moduleName - The module name associated with this exception
        fileName - The file name associated with this exception, from the given module
      • OSFileNotFoundException

        public OSFileNotFoundException​(Platform platform,
                                       java.lang.String fileName)
        Creates a new OSFileNotFoundException with an unknown module
        Parameters:
        platform - The Platform associated with this exception
        fileName - The file name associated with this exception, from an unknown module
      • OSFileNotFoundException

        public OSFileNotFoundException​(java.lang.String moduleName,
                                       java.lang.String fileName)
        Creates a new OSFileNotFoundException for the current Platform
        Parameters:
        moduleName - The module name associated with this exception
        fileName - The file name associated with this exception, from the given module
      • OSFileNotFoundException

        public OSFileNotFoundException​(java.lang.String fileName)
        Creates a new OSFileNotFoundException for the current Platform with an unknown module
        Parameters:
        fileName - The file name associated with this exception, from an unknown module
    • Method Detail

      • getPlatform

        public Platform getPlatform()
        Gets the Platform associated with this exception
        Returns:
        The Platform associated with this exception