ModuleError

public enum ModuleError : Error, CustomStringConvertible

Represents the possible errors that can be thrown while interacting with a Module object.

  • Thrown when a module does not pass the module verification process. Includes the reason the module did not pass verification.

    Declaration

    Swift

    case didNotPassVerification(String)
  • Thrown when a module cannot be printed at a given path. Provides the erroneous path and a deeper reason why printing to that path failed.

    Declaration

    Swift

    case couldNotPrint(path: String, error: String)
  • Thrown when a module cannot emit bitcode because it contains erroneous declarations.

    Declaration

    Swift

    case couldNotEmitBitCode(path: String)
  • Declaration

    Swift

    public var description: String { get }