以下は私のコードです:\
public void LoadProjectFile(String Filename) throws Exception
{
// m_Renderer.m_Project=new Project();
refresh_project();
m_Renderer.m_SelectedProjectPath = Filename;
try {
m_Renderer.m_Project.load_file(Filename);
}
catch (Exception e)
{
//Exception a = e.getMessage();
String a= e.getMessage();
throw new Exception(a);
}
//AppFuncs.m_GisProject=m_Renderer.m_Project;
}
try
{
Map.this.mGLView.LoadProjectFile(AppFuncs.g_path);
Map.this.mGLView.requestRender();
}
catch (Exception e)
{
br=1;
b=e.getMessage();
}
プロジェクト ファイルをロードすると、Map クラスで受け取る例外がスローされます。This exception contains message: Java.lang.exception: java.lang.exception: file not found.
メッセージだけを表示したい"File not found"
。では、例外からこのメッセージを取得するにはどうすればよいですか?