Skip to content
Snippets Groups Projects
Commit 32aea2c9 authored by Christian Humer's avatar Christian Humer
Browse files

Rethrow IOException if a problem occurs in default console handler.

parent fdb8cab1
Branches
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ public class DefaultConsoleHandler implements ConsoleHandler {
out.append(s).append('\n');
out.flush();
} catch (IOException e) {
// TODO: handle this error
throw new RuntimeException(e);
}
}
......@@ -50,7 +50,7 @@ public class DefaultConsoleHandler implements ConsoleHandler {
out.append(s).append('\n');
out.flush();
} catch (IOException e) {
// TODO: handle this error
throw new RuntimeException(e);
}
}
......@@ -59,7 +59,7 @@ public class DefaultConsoleHandler implements ConsoleHandler {
out.append(s).append('\n');
out.flush();
} catch (IOException e) {
// TODO: handle this error
throw new RuntimeException(e);
}
}
......@@ -68,7 +68,7 @@ public class DefaultConsoleHandler implements ConsoleHandler {
out.append(s).append('\n');
out.flush();
} catch (IOException e) {
// TODO: handle this error
throw new RuntimeException(e);
}
}
......@@ -76,8 +76,7 @@ public class DefaultConsoleHandler implements ConsoleHandler {
try {
return in.readLine();
} catch (IOException e) {
// TODO: handle this error
return null;
throw new RuntimeException(e);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment