View Javadoc

1   package org.opensync.tools.exception;
2   
3   /***	Class for catching the Runtime Exceptions such as IndexOutOfBound,
4   *	Invalid Arithmetic Operation, Database Exceptions or the dreaded
5   *	"NullPointerException!!!!" etc etc...
6   */
7   
8   public class APUserException extends OpenSyncException {
9   
10  	/***		
11  	*	Error Codes --
12  	*	UserError_default = "THE SYSTEM ENCOUNTERED AN ERROR";
13  	*	UserError_invalid_keywords_for_theme = "INVALID KEYWORDS FOR THEME";
14  	*	UserError_invalid_profile_delete = "YOU CAN NOT DELETE YOUR OWN PROFILE";
15  	*	UserError_invalid_user_delete = "YOU CAN NOT DELETE YOUR OWN RECORD";	
16  	*/
17  
18  	/***	Creates a APUserException. Use this constructor when you know what
19  	*	Error Code should be set in the AssetPlusException.
20  		!!!!!! IMPORTANT	!!!!!!!
21  	*	The error code has to be explicitly set. 
22  	*/
23  	public APUserException(String errorCode, Throwable e)
24      {
25          super(errorCode, e);
26      }
27      
28      public APUserException(String errorCode)
29      {
30          super(errorCode);
31      }
32  
33      /***	Creates a SystemException. Use this constructor when Error Code
34      *	to be set in the AssetPlusException is not known. We try to find
35      *	the actual Exception here, if we don't get it set the ErrorCode
36      *	to be default for this type of Exception.
37  	*
38      public APUserException(Throwable e)
39      {
40      	super(e);
41          
42      }*/
43  }