01: /*
02: * ValueErrorHandler
03: *
04: * $Id: ValueErrorHandler.java 3760 2005-08-15 23:35:10Z stack-sf $
05: *
06: * Created on Mar 31, 2004
07: *
08: * Copyright (C) 2004 Internet Archive.
09: *
10: * This file is part of the Heritrix web crawler (crawler.archive.org).
11: *
12: * Heritrix is free software; you can redistribute it and/or modify it under the
13: * terms of the GNU Lesser Public License as published by the Free Software
14: * Foundation; either version 2.1 of the License, or any later version.
15: *
16: * Heritrix is distributed in the hope that it will be useful, but WITHOUT ANY
17: * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
18: * A PARTICULAR PURPOSE. See the GNU Lesser Public License for more details.
19: *
20: * You should have received a copy of the GNU Lesser Public License along with
21: * Heritrix; if not, write to the Free Software Foundation, Inc., 59 Temple
22: * Place, Suite 330, Boston, MA 02111-1307 USA
23: */
24: package org.archive.crawler.settings;
25:
26: /**
27: * If a ValueErrorHandler is registered with a {@link SettingsHandler}, only
28: * constraints with level {@link java.util.logging.Level#SEVERE} will throw an
29: * {@link javax.management.InvalidAttributeValueException}.
30: *
31: * The ValueErrorHandler will recieve a notification for all failed checks
32: * with level equal or greater than the error reporting level.
33: *
34: * @author John Erik Halse
35: */
36: public interface ValueErrorHandler {
37: public void handleValueError(Constraint.FailedCheck error);
38: }
|