Line | Hits | Source |
---|---|---|
1 | /* | |
2 | * Created on Sep 8, 2004 | |
3 | * | |
4 | * Copyright (c) 2004, the JUNG Project and the Regents of the University | |
5 | * of California | |
6 | * All rights reserved. | |
7 | * | |
8 | * This software is open-source under the BSD license; see either | |
9 | * "license.txt" or | |
10 | * http://jung.sourceforge.net/license.txt for a description. | |
11 | */ | |
12 | package edu.uci.ics.jung.exceptions; | |
13 | ||
14 | import org.apache.commons.collections.Predicate; | |
15 | ||
16 | /** | |
17 | * | |
18 | * @author Joshua O'Madadhain | |
19 | */ | |
20 | public class ConstraintViolationException extends IllegalArgumentException | |
21 | { | |
22 | protected Predicate constraint; | |
23 | ||
24 | /** | |
25 | * @param arg0 | |
26 | */ | |
27 | public ConstraintViolationException(String arg0, Predicate constraint) | |
28 | { | |
29 | 39 | super(arg0); |
30 | 39 | this.constraint = constraint; |
31 | 39 | } |
32 | ||
33 | public Predicate getViolatedConstraint() | |
34 | { | |
35 | 0 | return constraint; |
36 | } | |
37 | } |
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |