You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by Apache Wiki <wi...@apache.org> on 2008/08/06 00:04:01 UTC

[Pig Wiki] Trivial Update of "PigDeveloperCookbook" by CorinneC

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Pig Wiki" for change notification.

The following page has been changed by CorinneC:
http://wiki.apache.org/pig/PigDeveloperCookbook

------------------------------------------------------------------------------
  It is helpful to be able to separate different types of errors in our code. Here is the proposal on how to handle them:
  
   * For `User Errors`, throw `ParseException` that contains meaningful message. For batch and interactive processing, catch the exception in Grunt and log the exception message to stderr. The same can be done with the developer in the embedded case. In debug mode, log the exception stack into the client side log.
-  * For `Internal Errors`, throw `RuntimeException` or its derivation. Catch the exception in main, log it, including the stack, to the client side log. Write failure message to stderr pointing to the log file.
+  * For `Internal Errors`, throw `!RuntimeException` or its derivation. Catch the exception in main, log it, including the stack, to the client side log. Write failure message to stderr pointing to the log file.
   * For `Frontend Errors`, throw newly created `FrontendException` that is a subclass of RuntimeException. Catch the exception in main, log it, including the stack, to the client side log. Write failure message to stderr pointing to the log file. In the future, we might find it useful to further subdivide this errors in which case we might subclass the `FrontendException` class. 
   * For `Backend Errors` there will need to be backend specific way to get the error from the backend to the frontend. Once this is done, log the error into client side log file and throw `ExecuteException`. Catch the exception in main, log it, including the stack, to the client side log. Write failure message to stderr pointing to the log file.
   
- == Pig and Eclipse ==
- Eclipse is an open source development community: [http://www.eclipse.org]
+ == Pig Setup in Eclipse IDE ==
+ Eclipse is an open source development community. For more information, see [http://www.eclipse.org Eclipse] and [http://www.eclipse.org/downloads/moreinfo/java.php Eclipse IDE].
  
  ==== Configure the Eclipse Plugins ====
- You will need the [http://www.easyeclipse.org/site/plugins/javacc.html JavaCC plugin] and the[http://subclipse.tigris.org/ Subclipse Subversion plugin] for [http://www.eclipse.org/ Eclipse]. 
+ You will need the [http://www.easyeclipse.org/site/plugins/javacc.html JavaCC plugin] and the[http://subclipse.tigris.org/ Subclipse Subversion plugin] for Eclipse.
  
  To install these plugins from within Eclipse, do the following: 
   * Select Help > Software Update > Find and Install