LayerMatchingError
public enum LayerMatchingError : Error
The different Error
s that can be thrown when filtering Layer
s 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 providedDeclaration
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 diagnosticsDeclaration
Swift
case matchedLayerNonMatchingKind(Layer)
-
Insufficient
Layer
s matched the filters to meet theindex
requirementDeclaration
Swift
case indexOutOfMatchedRange(Int, actualCount: Int)