From a462341a0a3e1132f3fcdb1efb0f7a56e851a9e1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 29 Aug 2025 01:12:02 +0900 Subject: container: repeat and impossible state types This moves repeated Op errors and impossible internal state errors off of msg. Signed-off-by: Ophestra --- container/init.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'container/init.go') 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 -- cgit v1.3.1