001: /*
002: * Copyright (c) 2001 - 2005 ivata limited.
003: * All rights reserved.
004: * -----------------------------------------------------------------------------
005: * ivata masks may be redistributed under the GNU General Public
006: * License as published by the Free Software Foundation;
007: * version 2 of the License.
008: *
009: * These programs are free software; you can redistribute them and/or
010: * modify them under the terms of the GNU General Public License
011: * as published by the Free Software Foundation; version 2 of the License.
012: *
013: * These programs are distributed in the hope that they will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
016: *
017: * See the GNU General Public License in the file LICENSE.txt for more
018: * details.
019: *
020: * If you would like a copy of the GNU General Public License write to
021: *
022: * Free Software Foundation, Inc.
023: * 59 Temple Place - Suite 330
024: * Boston, MA 02111-1307, USA.
025: *
026: *
027: * To arrange commercial support and licensing, contact ivata at
028: * http://www.ivata.com/contact.jsp
029: * -----------------------------------------------------------------------------
030: * $Log: ValueObjectException.java,v $
031: * Revision 1.7 2005/10/02 14:06:34 colinmacleod
032: * Added/improved log4j logging.
033: *
034: * Revision 1.6 2005/09/14 13:23:58 colinmacleod
035: * Added serialVersionUID.
036: *
037: * Revision 1.5 2005/04/09 18:04:19 colinmacleod
038: * Changed copyright text to GPL v2 explicitly.
039: *
040: * Revision 1.4 2005/01/19 13:14:02 colinmacleod
041: * Renamed CausedByException to SystemException.
042: *
043: * Revision 1.3 2005/01/07 08:08:25 colinmacleod
044: * Moved up a version number.
045: * Changed copyright notices to 2005.
046: * Updated the documentation:
047: * - started working on multiproject:site docu.
048: * - changed the logo.
049: * Added checkstyle and fixed LOADS of style issues.
050: * Added separate thirdparty subproject.
051: * Added struts (in web), util and webgui (in webtheme) from ivata op.
052: *
053: * Revision 1.2 2004/11/12 15:10:42 colinmacleod
054: * Moved persistence classes from ivata op as a replacement for
055: ValueObjectLocator.
056: *
057: * Revision 1.1.1.1 2004/05/16 20:40:32 colinmacleod
058: * Ready for 0.1 release
059: * -----------------------------------------------------------------------------
060: */
061: package com.ivata.mask.web.struts;
062:
063: import com.ivata.mask.util.SystemException;
064:
065: /**
066: * <p>
067: * Thrown whenever there is a problem creating a value object.
068: * </p>
069: *
070: * @since ivata masks 0.3 (2004-05-10)
071: * @author Colin MacLeod
072: * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
073: * @version $Revision: 1.7 $
074: */
075: public class ValueObjectException extends SystemException {
076: /**
077: * Serialization version (for <code>Serializable</code> interface).
078: */
079: private static final long serialVersionUID = 1L;
080:
081: /**
082: * <p>
083: * Create a value object exception, given a clear message.
084: * </p>
085: *
086: * @param message
087: * message describing what went wrong.
088: */
089: public ValueObjectException(final String message) {
090: super (message);
091: }
092:
093: /**
094: * <p>
095: * Create a value object exception, given the cause.
096: * </p>
097: *
098: * @param cause
099: * exception which caused the problem to happen.
100: */
101: public ValueObjectException(final Throwable cause) {
102: super (cause);
103: }
104:
105: /**
106: * <p>
107: * Create a value object exception, given the cause and the class of the
108: * value object.
109: * </p>
110: *
111: * @param cause
112: * exception which caused the problem to happen.
113: * @param valueObjectClassParam
114: * The class of value object we were trying to create. Can be
115: * <code>null</code>.
116: */
117: public ValueObjectException(final Throwable cause,
118: final Class valueObjectClassParam) {
119: super (cause);
120: }
121:
122: /**
123: * <p>
124: * Create a value object exception, given the cause and the class of the
125: * value object and an extra description of what went wrong.
126: * </p>
127: *
128: * @param cause
129: * exception which caused the problem to happen.
130: * @param valueObjectClassParam
131: * The class of value object we were trying to create. Can be
132: * <code>null</code>.
133: * @param message
134: * describes what went wrong.
135: */
136: public ValueObjectException(final Throwable cause,
137: final Class valueObjectClassParam, final String message) {
138: super(message, cause);
139: }
140: }
|