diff options
Diffstat (limited to 'container/init.go')
| -rw-r--r-- | container/init.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/container/init.go b/container/init.go index a13a523b..8b0a7a26 100644 --- a/container/init.go +++ b/container/init.go @@ -68,6 +68,16 @@ const ( nrAutoRoot ) +// OpRepeatError is returned applying a repeated nonrepeatable [Op]. +type OpRepeatError string + +func (e OpRepeatError) Error() string { return string(e) + " is not repeatable" } + +// OpStateError indicates an impossible internal state has been reached in an [Op]. +type OpStateError string + +func (o OpStateError) Error() string { return "impossible " + string(o) + " state reached" } + // initParams are params passed from parent. type initParams struct { Params |
