Dear Wiki user,

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

The following page has been changed by SanthoshSrinivasan:

   * '''Backend Errors'''. This are the errors that happened on the backend 
during the course of the program execution. An example would be failure to read 
a DFS file. The desired behavior in this case is to propagate the error from 
the backend to the frontend and then perform the processing similar to the 
internal error.
  It is helpful to be able to separate different types of errors in our code. 
Here is the proposal on how to handle them:
+ As a general rule, follow the custom of the current source file when throwing 
new Exceptions. When in doubt, enquire with other developers on the mailing 
   * 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.

Reply via email to