ScreenContainerTypeMismatchError

public struct ScreenContainerTypeMismatchError : ScreenError

The type of the container does not match the expected type.

This error occurs whenever any action fails to cast the container to the expected type.

  • Declaration

    Swift

    public var description: String { get }
  • Container that does not match the expected type.

    Declaration

    Swift

    public let container: ScreenContainer
  • Expected container type

    Declaration

    Swift

    public let type: Any.Type
  • The action that caused the error.

    Declaration

    Swift

    public let trigger: Any
  • Creates an error.

    Declaration

    Swift

    public init(container: ScreenContainer, type: Any.Type, for trigger: Any)

    Parameters

    container

    Container that does not match the expected type.

    type

    Expected container type.

    trigger

    The action that caused the error.