(other JSON)
| 233 | } |
| 234 | |
| 235 | func (j *errJSON) errJSON(other JSON) JSON { |
| 236 | return &errJSON{ |
| 237 | JSON: other, |
| 238 | errProb: j.errProb, |
| 239 | rng: j.rng, |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | // Format implements JSON, and overrides underlying JSON object |
| 244 | // implementation in order to inject errors. |