This commit is contained in:
Adam Fowler
2021-03-19 17:49:02 +00:00
parent 66cbb25e16
commit 3c50d1c15c
4 changed files with 15 additions and 7 deletions

View File

@@ -1,14 +1,20 @@
extension HBMustacheTemplate {
/// Error return by `HBMustacheTemplate.parse`. Includes information about where error occurred
public struct ParserError: Swift.Error {
public let context: HBParser.Context
public let error: Swift.Error
}
/// Error generated by `HBMustacheTemplate.parse`
public enum Error: Swift.Error {
/// the end section does not match the name of the start section
case sectionCloseNameIncorrect
/// tag was badly formatted
case unfinishedName
/// was not expecting a section end
case expectedSectionEnd
/// set delimiter tag badly formatted
case invalidSetDelimiter
}