RSDInputFieldError

public enum RSDInputFieldError : Error

RSDInputFieldError is used by the RSDFormStepDataSource when validating a user-entered answer for a given input field.

Seealso

RSDInputField and RSDFormStepDataSource
  • The context for the error.

    Declaration

    Swift

    public struct Context
  • The value entered cannot be converted to the expected answer type.

    Declaration

    Swift

    case invalidType(Context)
  • The formatter could not convert the value entered to the expected answer type.

    Declaration

    Swift

    case invalidFormatter(Formatter, Context)
  • The value entered does not match the regex for this field.

    Declaration

    Swift

    case invalidRegex(String?, Context)
  • The text value entered exceeds the maximum allowed length.

    Declaration

    Swift

    case exceedsMaxLength(Int, Context)
  • The numeric value entered is less than the minimum allowed value.

    Declaration

    Swift

    case lessThanMinimumValue(Decimal, Context)
  • The numeric value entered is greater than the maximum allowed value.

    Declaration

    Swift

    case greaterThanMaximumValue(Decimal, Context)
  • The date entered is less than the minimum allowed date.

    Declaration

    Swift

    case lessThanMinimumDate(Date, Context)
  • The date entered is greater than the maximum allowed date.

    Declaration

    Swift

    case greaterThanMaximumDate(Date, Context)
  • The domain of the error.

    Declaration

    Swift

    public static var errorDomain: String { get }
  • The error code within the given domain.

    Declaration

    Swift

    public var errorCode: Int { get }
  • The context for the error.

    Declaration

    Swift

    public var context: Context { get }
  • The user-info dictionary.

    Declaration

    Swift

    public var errorUserInfo: [String : Any] { get }