Initial commit
This commit is contained in:
14
error.go
Normal file
14
error.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package step
|
||||
|
||||
// Error enumerates errors common to this package.
|
||||
type Error string; const (
|
||||
ErrCircularInheritance Error = "Circular inheritance"
|
||||
ErrFrontMatterMalformed Error = "Front matter is malformed"
|
||||
ErrFrontMatterNeverClosed Error = "Front matter is never closed"
|
||||
ErrFrontMatterDuplicateKey Error = "Duplicate key in front matter"
|
||||
)
|
||||
|
||||
// Error fulfills the error interface.
|
||||
func (err Error) Error () string {
|
||||
return string(err)
|
||||
}
|
||||
Reference in New Issue
Block a user