• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

How do I set up an error dicitonary?

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not looking for someone to hold my hand. I'm looking for a link to a discussion or tutorial. I'm not even completely sure what one is. I'm guessing its a kind of lookup table to determine the best project-defined error for a given exception.

My google searches are turning up stuff on Python and Perl. Any guides for java?
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds interesting but I think I'm not getting it entirely. "dictionary" implies some kind of key-value, lookup by key? Can you give a few examples of how you'd turn exceptions into keys? Something like this?

ClassX.methodY.exceptionz = "We are out of beer. Please buy more."
 
Alan Smithee
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, I had initially assumed this was a Design Pattern I was not familiar with. Turns out I was wrong. This is just how they're referring to mapping error messages to objects. I'll post more if it turns out to be technically interesting, but as it stands right now I shouldn't have made the initial post and this thread can probably be deleted or locked.

Mea Culpa.
 
reply
    Bookmark Topic Watch Topic
  • New Topic