The Artima Developer Community
Sponsored Link

Java Buzz Forum
I hate sloppy error messages

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mats Henricson

Posts: 55
Nickname: matsh
Registered: May, 2003

Mats Henricson is interested in too much
I hate sloppy error messages Posted: Jun 26, 2003 8:52 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Mats Henricson.
Original Post: I hate sloppy error messages
Feed Title: Code:Q
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: Mats Henricson's weblog
Latest Java Buzz Posts
Latest Java Buzz Posts by Mats Henricson
Latest Posts From Code:Q

Advertisement


Currently I run Castor to generate Java files from an XML Schema. I call Castor from inside a .bat file, and execute that .bat file from inside ant with the <exec> task. It works, but I decided today to try to ditch the .bat file and instead directly call the org.exolab.castor.builder.SourceGenerator class by using the <java> task.

Well, it doesn't work - the SourceGenerator class can't find my schema, even though I specify it the same way as in the .bat file: "-i x/y/z/upl.xsd".

OK, a bug. What else is new? The only thing that makes me upset is the sloppy error message from Castor:

   unable to open XML schema file
Now, where did Castor try to find this file? Well, I have no idea, since the error message isn't telling me. What if the programmer instead had told me:

   Unable to open this XML schema file: /home/mats/x/y/z/upl.xsd
Then I could have figured out what was wrong. Now I have to dig into the source.

Read: I hate sloppy error messages

Topic: s / vi / eclipse / Previous Topic   Next Topic Topic: Debugging HTTP Made Easy

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use