/*
* Copyright 2004 (C) TJDO.
* All rights reserved.
*
* This software is distributed under the terms of the TJDO License version 1.0.
* See the terms of the TJDO License in the documentation provided with this software.
*
* $Id: SCOException.java,v 1.4 2004/01/18 03:01:06 jackknifebarber Exp $
*/
package com.triactive.jdo.sco;
import com.triactive.jdo.SCO;
import javax.jdo.JDOUserException;
/**
* A <tt>SCOException</tt> indicates an error in the construction or usage of
* of a second-class object instance.
*
* @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
* @version $Revision: 1.4 $
*/
public class SCOException extends JDOUserException
{
/**
* Constructs an SCO exception.
*
* @param sco The second-class object.
* @param message The error message.
*/
public SCOException(SCO sco, String message)
{
super(message + ": " + SCOHelper.toLogString(sco));
}
/**
* Constructs an SCO exception with nested <code>Throwable<code>s.
*
* @param sco The second-class object.
* @param message The error message.
* @param nested The nested Throwables.
*/
public SCOException(SCO sco, String message, Throwable[] nested)
{
super(message + ": " + SCOHelper.toLogString(sco), nested);
}
}
|