google.golang.org/protobuf/internal/impl.Export.NewError (method)
15 uses
google.golang.org/protobuf/internal/impl (current package)
api_export.go#L25: func (Export) NewError(f string, x ...any) error {
google.golang.org/protobuf/types/known/anypb
any.pb.go#L266: return protoimpl.X.NewError("invalid nil source message")
any.pb.go#L284: return protoimpl.X.NewError("invalid nil source message")
any.pb.go#L289: return protoimpl.X.NewError("mismatched message type: got %q, want %q", got, want)
any.pb.go#L303: return nil, protoimpl.X.NewError("invalid empty type URL")
any.pb.go#L317: return nil, protoimpl.X.NewError("could not resolve %q: %v", src.GetTypeUrl(), err)
google.golang.org/protobuf/types/known/durationpb
duration.pb.go#L203: return protoimpl.X.NewError("invalid nil Duration")
duration.pb.go#L205: return protoimpl.X.NewError("duration (%v) exceeds -10000 years", x)
duration.pb.go#L207: return protoimpl.X.NewError("duration (%v) exceeds +10000 years", x)
duration.pb.go#L209: return protoimpl.X.NewError("duration (%v) has out-of-range nanos", x)
duration.pb.go#L211: return protoimpl.X.NewError("duration (%v) has seconds and nanos with different signs", x)
google.golang.org/protobuf/types/known/timestamppb
timestamp.pb.go#L216: return protoimpl.X.NewError("invalid nil Timestamp")
timestamp.pb.go#L218: return protoimpl.X.NewError("timestamp (%v) before 0001-01-01", x)
timestamp.pb.go#L220: return protoimpl.X.NewError("timestamp (%v) after 9999-12-31", x)
timestamp.pb.go#L222: return protoimpl.X.NewError("timestamp (%v) has out-of-range nanos", x)