Class OSFileNotFoundException

All Implemented Interfaces:
Serializable

public class OSFileNotFoundException extends 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:
  • Constructor Details

    • OSFileNotFoundException

      public OSFileNotFoundException(Platform platform, String moduleName, 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, 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(String moduleName, 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(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 Details

    • getPlatform

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