|
|
@@ -5,6 +5,7 @@ package kr.co.zumo.app.lifeplus.view.screen.factory;
|
|
|
|
|
|
import android.support.v4.app.Fragment;
|
|
|
|
|
|
+import kr.co.zumo.app.lifeplus.CommonException;
|
|
|
import kr.co.zumo.app.lifeplus.supervisor.ScreenID;
|
|
|
|
|
|
/**
|
|
|
@@ -26,12 +27,12 @@ public abstract class FragmentFactory {
|
|
|
* @param id ScreenID.MAIN
|
|
|
* @return new MainFragment()
|
|
|
*/
|
|
|
- public Fragment getFragment(@ScreenID.ID int id) throws RuntimeException {
|
|
|
+ public Fragment getFragment(@ScreenID.ID int id) throws CommonException {
|
|
|
Fragment fragmentBase = getFragmentById(id);
|
|
|
|
|
|
if (null == fragmentBase) {
|
|
|
//에러시 BasicFragmentFactory 추가
|
|
|
- throw new RuntimeException("Fragment no matched. id: " + id);
|
|
|
+ throw new CommonException("Fragment no matched. id: " + id);
|
|
|
}
|
|
|
|
|
|
return fragmentBase;
|