[brailleblaster] Re: Catching exceptions that occur anywhere: was Re: Re: Braille Fonts

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Fri, 25 Jan 2013 13:39:13 -0600

All right. I think the catch block should display a message box with the 
exception message and information about the log file.

John

On Fri, Jan 25, 2013 at 07:01:21PM +0000, Michael Whapples wrote:
> In short, yes.
> 
> Michael Whapples
> On 25/01/2013 18:59, John J. Boyer wrote:
> >This is a start. Are you saying that a try block and a catch for the
> >Class Exception in main will catch any exception in the program? All I
> >want the dialog box to do is print the exception message and maybe tell
> >where to contact the developers. When the OK button is pressed, then
> >BrailleBlaster should terminate.
> >
> >John
> >
> >On Fri, Jan 25, 2013 at 05:16:45PM +0000, Michael Whapples wrote:
> >>Short answer yes.
> >>
> >>Longer answer is depends how much work you want to spend on it.
> >>
> >>Simply put, have a try/catch block catching all exceptions/errors
> >>(exercise: find the class all exceptions and errors inherit from) at the
> >>appropriate level (may be even in public static void main, although you
> >>may find recovering from there is difficult) and have code within the
> >>catch block which gets the exception information and puts it inside a
> >>message box and does what it can to recover if possible.
> >>
> >>Michael Whapples
> >>On 25/01/2013 15:56, John J. Boyer wrote:
> >>>Hi Brandon,
> >>>What class is this dialog in? I'll have a look at BBIni . When I get
> >>>this dialog BrailleBlaster terminates.
> >>>
> >>>Is there a way to make the program pop up a dialog box when an exception
> >>>occurs instead of just quitting?
> >>>
> >>>Thanks,
> >>>John
> >>>
> >>>On Fri, Jan 25, 2013 at 09:48:32AM -0500, Brandon Roller wrote:
> >>>>John,
> >>>>I have seen that dialog too.
> >>>>I think there are bugs in the BBIni.java file and how it finds a path to
> >>>>the BB directory.
> >>>>So the braille fonts are there, it's just that the correct path was not
> >>>>established on initialization.
> >>>>
> >>>>
> >>>>-Brandon
> >>>>
> >>>>
> >>>>On Fri, Jan 25, 2013 at 9:42 AM, Vic Beckley <vic.beckley3@xxxxxxxxx>
> >>>>wrote:
> >>>>
> >>>>>John,
> >>>>>
> >>>>>Strange. I'm not getting this. I am also running from the latest
> >>>>>repository.
> >>>>>
> >>>>>
> >>>>>-----Original Message-----
> >>>>>From: brailleblaster-bounce@xxxxxxxxxxxxx
> >>>>>[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
> >>>>>Sent: Friday, January 25, 2013 8:59 AM
> >>>>>To: brailleblaster@xxxxxxxxxxxxx
> >>>>>Subject: [brailleblaster] Braille Fonts
> >>>>>
> >>>>>I have just updated to the latest newdesign repository. When I run
> >>>>>BrailleBlaster to debug the crash I get a dialog saying that the 
> >>>>>Braille
> >>>>>font cannot be found. Whatever font this is, it should be in the fonts
> >>>>>directory in the repository, since it won't change.
> >>>>>
> >>>>>I see from the liblouis list that there is a font to display dot
> >>>>>patterns for Unicode Braille. Do we have this? If not, it should also 
> >>>>>be
> >>>>>in the fonts directory.
> >>>>>
> >>>>>Thanks,
> >>>>>John
> >>>>>
> >>>>>--
> >>>>>John J. Boyer; President, Chief Software Developer
> >>>>>Abilitiessoft, Inc.
> >>>>>http://www.abilitiessoft.com
> >>>>>Madison, Wisconsin USA
> >>>>>Developing software for people with disabilities
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> 

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities


Other related posts: