LayerMatchingError

public enum LayerMatchingError : Error

The different Errors that can be thrown when filtering Layers in a LayerContainer. The attached values can be used to provide diagnostic information or recover from the error in many cases.

  • No filters were provided so the size of the set will not change

    Declaration

    Swift

    case noFiltersSpecified
  • No layers matched the supplied filters

    Declaration

    Swift

    case noLayersMatchedFilters
  • When trying to select a specific layer type (e.g. with objectLayer()) and more than one layer matches. The matched layers are provided

    Declaration

    Swift

    case multipleLayersMatchedFilters([Layer])
  • When trying to select a specific layer type (e.g. with objectLayer()) and the single matching layer is of the wrong kind. The layer is included to assist with diagnostics

    Declaration

    Swift

    case matchedLayerNonMatchingKind(Layer)
  • Insufficient Layers matched the filters to meet the index requirement

    Declaration

    Swift

    case indexOutOfMatchedRange(Int, actualCount: Int)