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 SanthoshSrinivasan:
http://wiki.apache.org/pig/PigErrorHandling

------------------------------------------------------------------------------
  
  === Error reporting ===
  
- Provide users with readable error messages and not just for developers. Stack 
traces provide a good mechanism to help debugging but do not mean much to the 
user. Readable and simple error messages will be presented on STDERR. Error 
codes will be devised for all error messages. The error codes will be 
classified into categories to enable further action based on the type of error. 
Exceptions will not be swallowed enabling detection of the root cause of the 
issue. Detailed information like stack trace will be logged into client side 
logs. The logs will be stored in the current working directory or the user's 
home directory. The location of the log file will be configurable. Users can 
send logs that contain the details of the error like stack trace to assist 
developers in resolving issues.
+ ==== Readable Error Messages ====
+ Provide users with readable error messages and not just for developers. Stack 
traces provide a good mechanism to help debugging but do not mean much to the 
user. Readable and simple error messages will be presented on STDERR. 
+ 
+ ==== Error codes  ====
+ Error codes will be devised for all error messages. The error codes will be 
classified into categories to enable further action based on the type of error. 
+ 
+ ==== Logs with error message details ====
+ Exceptions will not be swallowed, enabling detection of the root cause of the 
issue. Detailed information like stack trace will be logged into client side 
logs. The logs will be stored in the current working directory or the user's 
home directory. The location of the log file will be configurable. Users can 
send logs that contain the details of the error like stack trace to assist 
developers in resolving issues.
  
  E.g.: For a semantic error like mismatch in cogroup arity, the STDERR 
messages and the log messages will look like. Note that this example is used to 
illustrate a possible use case.
  

Reply via email to