2828import org .eclipse .core .runtime .Status ;
2929
3030import io .sloeber .core .Activator ;
31+ import io .sloeber .core .common .Common ;
3132import io .sloeber .core .common .ConfigurationPreferences ;
3233import io .sloeber .core .common .Const ;
3334
@@ -96,14 +97,14 @@ public String getSize() {
9697 return this .size ;
9798 }
9899
99- public List <Board > getBoards () throws CoreException {
100+ public List <Board > getBoards () {
100101 if (isInstalled () && this .boardsFile == null ) {
101102 Properties boardProps = new Properties ();
102103 try (Reader reader = new FileReader (getBoardsFile ())) {
103104 boardProps .load (reader );
104105 } catch (IOException e ) {
105- throw new CoreException (
106- new Status ( IStatus . ERROR , Activator . getId (), Messages . Platform_loading_boards , e )) ;
106+ Common . log ( new Status ( IStatus . ERROR , Activator . getId (), Messages . Platform_loading_boards , e ));
107+ return this . boards ;
107108 }
108109
109110 this .boardsFile = new HierarchicalProperties (boardProps );
@@ -120,7 +121,7 @@ public List<Board> getBoards() throws CoreException {
120121 return this .boards ;
121122 }
122123
123- public Board getBoard (String boardName ) throws CoreException {
124+ public Board getBoard (String boardName ) {
124125 for (Board board : getBoards ()) {
125126 if (boardName .equals (board .getName ())) {
126127 return board ;
0 commit comments