Configurator.hh 751 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Configurator.hh
  3. *
  4. * Copyright 2001, Glen Scott. All rights reserved.
  5. *
  6. * See the COPYING file for the terms of usage and distribution.
  7. */
  8. #ifndef _LOG4CPP_CONFIGURATOR_HH
  9. #define _LOG4CPP_CONFIGURATOR_HH
  10. #pragma warning( disable: 4275 ) // non dll-interface structXXX used as base
  11. #include <log4cpp/Portability.hh>
  12. #include <log4cpp/Export.hh>
  13. #include <string>
  14. #include <stdexcept>
  15. LOG4CPP_NS_BEGIN
  16. /**
  17. * Exception class for configuration.
  18. */
  19. class LOG4CPP_EXPORT ConfigureFailure : public std::runtime_error {
  20. public:
  21. /**
  22. * Constructor.
  23. * @param reason String containing the description of the exception.
  24. */
  25. ConfigureFailure(const std::string& reason);
  26. };
  27. LOG4CPP_NS_END
  28. #endif // _LOG4CPP_CONFIGURATOR_HH