StencilTemplateEngineError
public enum StencilTemplateEngineError : Swift.Error
An Error type for use when describing errors that can occur while working with
the StencilTemplateEngine type.
-
Thrown when the
StencilTemplateEngine.rootPathsproperty is empty.Declaration
Swift
case rootPathsEmpty -
A deprecated render method was called. Instead, call
render(filePath:context:options:templateName:).Declaration
Swift
case deprecatedRenderMethodCalled -
Thrown when unable to cast ‘json’ value to a
[String: Any].Declaration
Swift
case unableToCastJSONToDict -
Thrown when unable to encode the
Encodablevalue provided to data.Declaration
Swift
case unableToEncodeValue(value: Encodable) -
Thrown when Stencil fails to render the context with the given template.
Declaration
Swift
case unableToRenderContext(context: [String : Any]) -
Thrown when a
[Encodable]orSet<Encodable>is passed without a Key.Declaration
Swift
case noKeyProvidedForType(value: Encodable)
View on GitHub
StencilTemplateEngineError Enumeration Reference