try { // ... } catch (InputFormatException e) { // ... } catch (FileNotFoundException e) { // ... } catch (IOException e) { // ... } PaperInputResult result = PaperInput.process(input); if (result.isSuccess()) { // ... } else { int errorCode = result.getErrorCode(); String errorMessage = result.getErrorMessage(); // ... } public static void processPaperInput(String input) throws InputFormatException, IOException { // ... }


上一篇:
下一篇:
切换中文