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 ...interface{}) error {
google.golang.org/protobuf/types/known/anypb
any.pb.go#L268: return protoimpl.X.NewError("invalid nil source message")
any.pb.go#L286: return protoimpl.X.NewError("invalid nil source message")
any.pb.go#L291: return protoimpl.X.NewError("mismatched message type: got %q, want %q", got, want)
any.pb.go#L305: return nil, protoimpl.X.NewError("invalid empty type URL")
any.pb.go#L319: return nil, protoimpl.X.NewError("could not resolve %q: %v", src.GetTypeUrl(), err)
google.golang.org/protobuf/types/known/durationpb
duration.pb.go#L208: return protoimpl.X.NewError("invalid nil Duration")
duration.pb.go#L210: return protoimpl.X.NewError("duration (%v) exceeds -10000 years", x)
duration.pb.go#L212: return protoimpl.X.NewError("duration (%v) exceeds +10000 years", x)
duration.pb.go#L214: return protoimpl.X.NewError("duration (%v) has out-of-range nanos", x)
duration.pb.go#L216: return protoimpl.X.NewError("duration (%v) has seconds and nanos with different signs", x)
google.golang.org/protobuf/types/known/timestamppb
timestamp.pb.go#L223: return protoimpl.X.NewError("invalid nil Timestamp")
timestamp.pb.go#L225: return protoimpl.X.NewError("timestamp (%v) before 0001-01-01", x)
timestamp.pb.go#L227: return protoimpl.X.NewError("timestamp (%v) after 9999-12-31", x)
timestamp.pb.go#L229: return protoimpl.X.NewError("timestamp (%v) has out-of-range nanos", x)