/**
  * Turns the given value into a string. Delegates to FlattenRecord::naiveAsString(),
  * but may be overridden to change that.
  */
 public function asString($value)
 {
     return FlattenRecord::naiveAsString($value);
 }
 public function extractError($data)
 {
     if ($this->transformer) {
         $err = $this->transformer->extractError($data);
     } else {
         $err = FlattenRecord::naiveResolvePath($data, $this->errorPath);
         $err = FlattenRecord::naiveAsString($err);
     }
     return $err;
 }