View Javadoc

1   /***
2    * License Agreement.
3    * 
4    * JSPA (POJO-SP)
5    * 
6    * Copyright (C) 2009 HRX Pty Ltd
7    * 
8    * This file is part of JSPA.
9    * 
10   * JSPA is free software: you can redistribute it and/or modify it under the
11   * terms of the GNU Lesser General Public License version 3 as published by the
12   * Free Software Foundation.
13   * 
14   * JSPA is distributed in the hope that it will be useful, but WITHOUT ANY
15   * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16   * A PARTICULAR PURPOSE. See the Lesser General Public License for more details.
17   * 
18   * You should have received a copy of the GNU Lesser General Public License
19   * along with JSPA. If not, see <http://www.gnu.org/licenses/>.
20   */
21  package com.hrx.rasp.util.dao.exception;
22  
23  /***
24   * @author dan.stoica <dan.stoica@acslink.net.au>
25   *
26   */
27  public class StoredProcedureException extends Exception
28  {
29  
30  	private static final long serialVersionUID = 1L;
31  	private int spCode;
32  
33  	public StoredProcedureException()
34  	{
35  		super();
36  	}
37  
38  	/***
39  	 * @param message
40  	 * @param cause
41  	 */
42  	public StoredProcedureException(String message, Throwable cause)
43  	{
44  		super(message, cause);
45  	}
46  
47  	/***
48  	 * @param message
49  	 */
50  	public StoredProcedureException(String message)
51  	{
52  		super(message);
53  	}
54  
55  	/***
56  	 * @param cause
57  	 */
58  	public StoredProcedureException(Throwable cause)
59  	{
60  		super(cause);
61  	}
62  
63  	public StoredProcedureException(String proc, int code, String msg)
64  	{
65  		super(msg);
66  		spCode = code;
67  	}
68  
69  	/***
70  	 * @return the spCode
71  	 */
72  	public int getSpCode()
73  	{
74  		return spCode;
75  	}
76  
77  }