001 // Copyright (c) 2001 Hursh Jain (http://www.mollypages.org)
002 // The Molly framework is freely distributable under the terms of an
003 // MIT-style license. For details, see the molly pages web site at:
004 // http://www.mollypages.org/. Use, modify, have fun !
005
006 package fc.util;
007
008 /**
009 Argcheck failure handlers should implement this interface.
010 **/
011 public interface IArgcheckFailHandler
012 {
013 /**
014 This method will be called on by the {@link fc.app.Checker} class in
015 case of an Argcheck failure. See {@link fc.app.Argcheck}.
016 <p>
017 Therefore, implementations can do neat things like writing
018 detailed thread/stack information or even paging/sending email.
019 After doing other handling, Implementations should end this
020 method by throwing a RuntimeException (unless there is a very
021 strong reason not to).
022 **/
023 public void handle(String msg);
024 }