01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package fit.exception;
04:
05: import java.text.MessageFormat;
06:
07: public abstract class FixtureException extends FitFailureException {
08: public final String fixtureName;
09:
10: public FixtureException(String messageFormat, String fixtureName) {
11: super (formatMessage(messageFormat, fixtureName));
12: this .fixtureName = fixtureName;
13: }
14:
15: private static String formatMessage(String messageFormat,
16: String fixtureName) {
17: return new MessageFormat(messageFormat)
18: .format(new Object[] { fixtureName });
19: }
20: }
|