DestinationsError

public enum DestinationsError : Error, Hashable

An enum representing Destinations errors that can be thrown.

  • An error type sent when a tab is not found.

    Declaration

    Swift

    case tabNotFound(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type sent when an interactor is not found.

    Declaration

    Swift

    case interactorNotFound(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type sent when the child Destination of a GroupedDestinationable class was not found.

    Declaration

    Swift

    case childDestinationNotFound(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type representing an unsupported action type for an interactor request.

    Declaration

    Swift

    case unsupportedInteractorActionType(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type representing a missing interactor type.

    Declaration

    Swift

    case missingInteractorType(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type denoting that an appropriate InterfaceAction was not found.

    Declaration

    Swift

    case missingInterfaceAction(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type representing an unsupported Interactor assistant type for an interactor request.

    Declaration

    Swift

    case unsupportedInteractorAssistantType(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type denoting that an assistant for performing an InterfaceAction is missing.

    Declaration

    Swift

    case missingInterfaceActionAssistant(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type denoting that an async assistant did not implement the asyncRequest method.

    Declaration

    Swift

    case missingAsyncRequestImplementation(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type denoting that a Destination type was not supplied with a presentation type that requires one.

    Declaration

    Swift

    case undefinedDestinationType(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type denoting that a column type for the UIKit or SwiftUI split view interface is undefined.

    Declaration

    Swift

    case undefinedSplitViewColumnType(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type generated when a duplicate event type is attempted to be used to add a InterfaceAction to a Destination.

    Declaration

    Swift

    case duplicateEventTypeUsed(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type generated when an ActionConfiguration is sent to performActions(configuration:content:) that references an Interactor type that has not been registered with the Destination.

    Declaration

    Swift

    case unregisteredInteractor(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type generated when an incompatible type was passed as a parameter, typically an incorrect sub-protocol.

    Declaration

    Swift

    case incompatibleType(message: String)

    Parameters

    message

    A message to be sent with the error.

  • An error type returned by the async performAction(for:content:) method of Destinationable when the event type is bound to a Destination presentation.

    This error doesn’t mean the presentation failed. The presentation is performed, but presentations have no result value to return, so this error is returned in place of one. Use the throwing, non-async performAction(for:content:) for presentation events. This behavior for presentations may change in a future version.

    Declaration

    Swift

    case presentationResultNotSupported(message: String)

    Parameters

    message

    A message to be sent with the error.