MustacheTemplateEngineError

public enum MustacheTemplateEngineError: Swift.Error

An Error type for use when describing errors that can occur while working with the MustacheTemplateEngine type.

  • Thrown when unable to cast ‘json’ value to a [String: Any].

    Declaration

    Swift

    case unableToCastJSONToDict
  • Thrown when unable to encode the Encodable value provided to data.

    Declaration

    Swift

    case unableToEncodeValue(value: Encodable)
  • Thrown when GRMustache fails to render the context with the given template.

    Declaration

    Swift

    case unableToRenderContext(context: [String: Any])
  • Thrown when a [Encodable] or Set<Encodable> is passed without a Key.

    Declaration

    Swift

    case noKeyProvidedForType(value: Encodable)