/// <param name="xamlFile">An absolute path to the xaml file.</param>
/// <exception cref="ArgumentNullException">Thrown when the given xamlFile is null or empty string.</exception>
/// <exception cref="global::System.IO.IOException">Thrown when there are file IO problems.</exception>
- /// <exception cref="Exception">Thrown when the content of the xaml file is not valid xaml form.</exception>
+ /// <exception cref="XamlParseException">Thrown when the content of the xaml file is not valid xaml form.</exception>
/// <since_tizen> 9 </since_tizen>
public Theme(string xamlFile) : this()
{
}
catch (System.IO.IOException)
{
- Tizen.Log.Error("NUI", $"Could not load \"{xamlFile}\".\n");
+ Tizen.Log.Info("NUI", $"Could not load \"{xamlFile}\".\n");
throw;
}
- catch (Exception)
+ catch (XamlParseException)
{
- Tizen.Log.Error("NUI", $"Could not parse \"{xamlFile}\".\n");
- Tizen.Log.Error("NUI", "Make sure the all used assemblies (e.g. Tizen.NUI.Components) are included in the application project.\n");
- Tizen.Log.Error("NUI", "Make sure the type and namespace are correct.\n");
+ Tizen.Log.Info("NUI", $"Could not parse \"{xamlFile}\".\n");
+ Tizen.Log.Info("NUI", "Make sure the all used assemblies (e.g. Tizen.NUI.Components) are included in the application project.\n");
+ Tizen.Log.Info("NUI", "Make sure the type and namespace are correct.\n");
throw;
}
+ catch (Exception e)
+ {
+ Tizen.Log.Info("NUI", $"Could not parse \"{xamlFile}\".\n");
+ throw new XamlParseException(e.Message);
+ }
}
/// <summary>