Lines Matching defs:error
100 Error
103 Error error;
160 error.SetErrorStringWithFormat("invalid key \"%s\", the key must be a bare string or surrounded by brackets with optional quotes: [<key>] or ['<key>'] or [\"<key>\"]", kvp.first.str().c_str());
161 return error;
166 error));
169 if (error.Fail())
170 return error;
176 error.SetErrorString("dictionaries that can contain multiple types must subclass OptionValueArray");
181 error.SetErrorString("empty argument");
187 error.SetErrorString("assign operation takes one or more key=value arguments");
199 error.SetErrorStringWithFormat("no value found named '%s', aborting remove operation", key.GetCString());
206 error.SetErrorString("remove operation takes one or more key arguments");
213 error = OptionValue::SetValueFromCString (NULL, op);
216 return error;
219 Error
227 OptionValueDictionary::GetSubValue (const ExecutionContext *exe_ctx, const char *name, bool will_modify, Error &error) const
255 error.SetErrorStringWithFormat ("invalid value path '%s', single quoted key names must be formatted as ['<key>'] where <key> is a string that doesn't contain quotes", name);
261 error.SetErrorString ("missing '] key name terminator, key name started with ['");
276 error.SetErrorStringWithFormat ("invalid value path '%s', double quoted key names must be formatted as [\"<key>\"] where <key> is a string that doesn't contain quotes", name);
281 error.SetErrorString ("missing \"] key name terminator, key name started with [\"");
295 error.SetErrorString ("missing ] key name terminator, key name started with [");
309 return value_sp->GetSubValue (exe_ctx, sub_name, will_modify, error);
313 error.SetErrorStringWithFormat("dictionary does not contain a value for the key name '%s'", key.GetCString());
317 if (!value_sp && error.AsCString() == NULL)
319 error.SetErrorStringWithFormat ("invalid value path '%s', %s values only support '[<key>]' subvalues where <key> a string value optionally delimitted by single or double quotes",
327 Error
330 Error error;
332 lldb::OptionValueSP value_sp (GetSubValue (exe_ctx, name, will_modify, error));
334 error = value_sp->SetValueFromCString(value, op);
337 if (error.AsCString() == NULL)
338 error.SetErrorStringWithFormat("invalid value path '%s'", name);
340 return error;