Enum MLModelError

java.lang.Object
java.lang.Enum<MLModelError>
org.robovm.apple.coreml.MLModelError
All Implemented Interfaces:
Serializable, Comparable<MLModelError>, NSErrorCode, ValuedEnum

public enum MLModelError
extends Enum<MLModelError>
implements NSErrorCode
Since:
Available in iOS 11.0 and later.
  • Enum Constant Details

    • Generic

      public static final MLModelError Generic
    • FeatureType

      public static final MLModelError FeatureType
    • IO

      public static final MLModelError IO
    • CustomLayer

      public static final MLModelError CustomLayer
      Since:
      Available in iOS 11.2 and later.
    • CustomModel

      public static final MLModelError CustomModel
      Since:
      Available in iOS 12.0 and later.
    • Update

      public static final MLModelError Update
      Since:
      Available in iOS 13.0 and later.
    • Parameters

      public static final MLModelError Parameters
      Since:
      Available in iOS 13.0 and later.
    • ModelDecryptionKeyFetch

      public static final MLModelError ModelDecryptionKeyFetch
      Since:
      Available in iOS 14.0 and later.
    • ModelDecryption

      public static final MLModelError ModelDecryption
      Since:
      Available in iOS 14.0 and later.
    • ModelCollection

      public static final MLModelError ModelCollection
      Since:
      Available in iOS 14.0 and later.
  • Method Details

    • values

      public static MLModelError[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MLModelError valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getClassDomain

      public static String getClassDomain()
      Since:
      Available in iOS 11.0 and later.
    • value

      public long value()
      Specified by:
      value in interface ValuedEnum
    • valueOf

      public static MLModelError valueOf​(long n)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      n - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null