ModeratorError

public enum ModeratorError : String, Error, LocalizedError

Runtime errors that may be produced by a Moderator in response to incompatible input data or internal faults.

  • Implementation missing — An experimental feature which is incomplete. This will never be returned by documented API.

    Declaration

    Swift

    case notImplemented = "Implementation missing"
  • The resources needed to run this algorithm could not be loaded.

    Declaration

    Swift

    case loadingBundledModel = "Model could not be loaded from bundle"
  • The input image could not be converted into a compatible format.

    Declaration

    Swift

    case convertingInputImage = "Input image could not be converted by preprocessor"
  • There was an internal fault during moderation.

    Declaration

    Swift

    case runningModel = "Model produced no output"
  • Declaration

    Swift

    public var errorDescription: String? { get }