Documentation
¶
Overview ¶
Package errs provides a common set of error for the pkg n
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTmplEndTagNotFound ¶
IsTmplEndTagNotFound returns true if the given err was created by NewTmplEndTagNotFound
func IsTmplTagsInvalid ¶
IsTmplTagsInvalid returns true if the given err was created by NewTmplTagsInvalid
func IsTmplVarsNotFound ¶
IsTmplVarsNotFound returns true if the given err was created by NewTmplVarsNotFound
Types ¶
type Error ¶
Error provides a common error type for N types
func NewTmplEndTagNotFound ¶
NewTmplEndTagNotFound indicates that a start tag was found but not an end tag or a template variable
func NewTmplTagsInvalid ¶
func NewTmplTagsInvalid() Error
NewTmplTagsInvalid indicates that the template start and/or end tags were invalid
func NewTmplVarsNotFound ¶
func NewTmplVarsNotFound() Error
NewTmplVarsNotFound indicates that template variables were not found
type ErrorType ¶
type ErrorType string
ErrorType is an enumeration of well known error types
const ( // ErrorTypeTmplEndTagNotFound indicates that a start tag was found but not an end tag or a template variable ErrorTypeTmplEndTagNotFound ErrorType = "TmplEndTagNotFound" // ErrorTypeTmplTagsInvalid indicates that the template start and/or end tags were invalid ErrorTypeTmplTagsInvalid ErrorType = "TmplTagsInvalid" // ErrorTypeTmplVarsNotFound indicates that template variables were not found ErrorTypeTmplVarsNotFound ErrorType = "TmplVarsNotFound" )