InstanceError

public enum InstanceError : Equatable
extension InstanceError: LocalizedError

Enum representing an error related to a waterfall instance.

  • The load request was not successful. adapterCode is the error code of the underlying adapter, if available. reason is a string message describing the error.

    Declaration

    Swift

    case loadFailed(adapterCode: Int? = nil, reason: String)
  • The adapted network took too long to load an ad, which resulted in a timeout.

    Declaration

    Swift

    case timeout
  • The adapted network failed to initialize correctly.

    Declaration

    Swift

    case initializationFailed(reason: String)
  • Invalid or missing configuration parameter passed to the adapted network. key describes the missing configuration parameter key.

    Declaration

    Swift

    case invalidConfiguration(key: String)
  • No network adapter with the specified classname was found.

    Declaration

    Swift

    case invalidClassname
  • Unexpected error.

    Declaration

    Swift

    case unexpected
  • The adapted network does not support the specified ad type.

    Declaration

    Swift

    case unsupportedType
  • The instance was skipped.

    Declaration

    Swift

    case skipped(reason: String)
  • The adapted network received new init parameters (for example a different app key) and was unable to perform a new init.

    Declaration

    Swift

    case reinitializationUnsupported(reason: String)
  • The adapted network was unable to initialize in time.

    Declaration

    Swift

    case initializationTimeout
  • Declaration

    Swift

    public var errorDescription: String? { get }
  • Integer representation of the InstanceError enum cases

    Declaration

    Swift

    public var errorCode: Int { get }