errinfo_file_name.hpp 745 B

1234567891011121314151617181920212223242526
  1. //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
  2. //Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #ifndef BOOST_EXCEPTION_FEE5120A6C1211DE94E8BC9155D89593
  5. #define BOOST_EXCEPTION_FEE5120A6C1211DE94E8BC9155D89593
  6. #include <string>
  7. namespace
  8. boost
  9. {
  10. template <class Tag,class T> class error_info;
  11. //Usage hint:
  12. //FILE * f=fopen(name,mode);
  13. //if( !f )
  14. // BOOST_THROW_EXCEPTION(
  15. // file_open_error() <<
  16. // errinfo_file_name(name) <<
  17. // errinfo_file_open_mode(mode) );
  18. typedef error_info<struct errinfo_file_name_,std::string> errinfo_file_name;
  19. }
  20. #endif