KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > sco > SCOException


1 /*
2  * Copyright 2004 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: SCOException.java,v 1.4 2004/01/18 03:01:06 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.sco;
12
13 import com.triactive.jdo.SCO;
14 import javax.jdo.JDOUserException;
15
16
17 /**
18  * A <tt>SCOException</tt> indicates an error in the construction or usage of
19  * of a second-class object instance.
20  *
21  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
22  * @version $Revision: 1.4 $
23  */

24
25 public class SCOException extends JDOUserException
26 {
27     /**
28      * Constructs an SCO exception.
29      *
30      * @param sco The second-class object.
31      * @param message The error message.
32      */

33
34     public SCOException(SCO sco, String JavaDoc message)
35     {
36         super(message + ": " + SCOHelper.toLogString(sco));
37     }
38
39
40     /**
41      * Constructs an SCO exception with nested <code>Throwable<code>s.
42      *
43      * @param sco The second-class object.
44      * @param message The error message.
45      * @param nested The nested Throwables.
46      */

47
48     public SCOException(SCO sco, String JavaDoc message, Throwable JavaDoc[] nested)
49     {
50         super(message + ": " + SCOHelper.toLogString(sco), nested);
51     }
52 }
53
Popular Tags