@ 53308ffa01ed91d41c6657b16c77ee7a97ad8d3b | history
package policy
import "fmt"
// ErrPolicy: policy processing rejected the chain, so the certs do not
// describe a program.
const ErrPolicy = "E-POLICY"
type Error struct {
Code string
Msg string
}
func (e *Error) Error() string { return e.Code + ": " + e.Msg }
func errorf(code, format string, args ...any) *Error {
return &Error{Code: code, Msg: fmt.Sprintf(format, args...)}
}