View Javadoc

1   /**
2    * $Id: ExceptionManager.java 17 2006-10-19 15:11:35Z maldito_orco $
3    * $Revision: 17 $
4    * $Date: 2006-10-19 12:11:35 -0300 (Thu, 19 Oct 2006) $
5    *
6    * =========================================================================
7    *
8    * Copyright 2005 Tubo
9    *
10   *  Licensed under the Apache License, Version 2.0 (the "License");
11   *  you may not use this file except in compliance with the License.
12   *  You may obtain a copy of the License at
13   *
14   *     http://www.apache.org/licenses/LICENSE-2.0
15   *
16   *  Unless required by applicable law or agreed to in writing, software
17   *  distributed under the License is distributed on an "AS IS" BASIS,
18   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   *  See the License for the specific language governing permissions and
20   *  limitations under the License.
21   */
22  package org.tubo.exception;
23  
24  import org.tubo.resource.ResourceManager;
25  
26  
27  /**
28   * Created: Sep 21, 2006, 5:24:52 PM
29   * Last Modification Date: $Date: 2006-10-19 12:11:35 -0300 (Thu, 19 Oct 2006) $
30   *
31   * @author maldito_orco (maldito_orco@users.sourceforge.net)
32   * @version $Revision: 17 $
33   */
34  public interface ExceptionManager  {
35      public static final String RCS_ID = "$Id: ExceptionManager.java 17 2006-10-19 15:11:35Z maldito_orco $";
36  
37      void setResourceManager(ResourceManager resourceManager) throws TuboException;
38  
39      TuboException getException(int errorCode);
40  
41      TuboException getException(int errorCode, Object[] args);
42  
43      TuboException getException(int errorCode, Throwable cause);
44  
45      TuboException getException(int errorCode, Object[] args, Throwable cause);
46  
47      TuboException getException(String exceptionId, String messageId, Object[] args, Throwable cause);
48  
49      TuboException getException(String exceptionId, String message, Throwable cause);
50  
51      TuboException getException(int errorCode, Object arg1);
52  
53      TuboException getException(int errorCode, Object arg1, Object arg2);
54  
55      TuboException getException(int errorCode, Object arg1, Throwable cause);
56  
57      TuboException getException(int errorCode, Object arg1, Object arg2, Throwable cause);
58  }