Created
July 29, 2019 07:57
-
-
Save zarinfam/b0a74326a70236eaaf978f42a4265423 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void handlePrinting(String text) { | |
| try { | |
| printText(text); | |
| } catch (PrintingException e) { | |
| // handle the exception and decide what to do | |
| // retry or show an error message and ... | |
| return; | |
| } | |
| // successful printing and ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment