public static Map decodeQuery(string s)
{
try
{
return new Decoder(s, true).decodeQuery();
}
catch (ArgErr.Val e)
{
throw ArgErr.make("Invalid Uri query: `" + s + "`: " + e.m_err.msg()).val;
}
catch (Exception)
{
throw ArgErr.make("Invalid Uri query: `" + s + "`").val;
}
}