{"id":"7ac8b41ed565de1e","repo":"jackc/pgx","slug":"circle-w","errorCode":null,"errorMessage":"Circle: %w","messagePattern":"Circle: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgtype/circle.go","lineNumber":176,"sourceCode":"}\n\ntype scanPlanBinaryCircleToCircleScanner struct{}\n\nfunc (scanPlanBinaryCircleToCircleScanner) Scan(src []byte, dst any) error {\n\tscanner := (dst).(CircleScanner)\n\n\tif src == nil {\n\t\treturn scanner.ScanCircle(Circle{})\n\t}\n\n\trd := pgio.NewReader(src)\n\n\tx := rd.Uint64()\n\ty := rd.Uint64()\n\tr := rd.Uint64()\n\n\tif err := rd.Finish(); err != nil {\n\t\treturn fmt.Errorf(\"Circle: %w\", err)\n\t}\n\n\treturn scanner.ScanCircle(Circle{\n\t\tP:     Vec2{math.Float64frombits(x), math.Float64frombits(y)},\n\t\tR:     math.Float64frombits(r),\n\t\tValid: true,\n\t})\n}\n\ntype scanPlanTextAnyToCircleScanner struct{}\n\nfunc (scanPlanTextAnyToCircleScanner) Scan(src []byte, dst any) error {\n\tscanner := (dst).(CircleScanner)\n\n\tif src == nil {\n\t\treturn scanner.ScanCircle(Circle{})\n\t}\n","sourceCodeStart":158,"sourceCodeEnd":194,"githubUrl":"https://github.com/jackc/pgx/blob/ec1a0befd22592cffffdeeb0a50311b506372f4c/pgtype/circle.go#L158-L194","documentation":"Error \"Circle: %w\" thrown in jackc/pgx.","triggerScenarios":"Thrown at pgtype/circle.go:176 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"ec1a0befd22592cffffdeeb0a50311b506372f4c","analyzedAt":"2026-08-04T22:52:11.263Z","schemaVersion":2}