mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 04:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			560 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			560 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_NIF_EXCEPTION_HPP
 | 
						|
#define OPENMW_COMPONENTS_NIF_EXCEPTION_HPP
 | 
						|
 | 
						|
#include <stdexcept>
 | 
						|
#include <string>
 | 
						|
 | 
						|
namespace Nif
 | 
						|
{
 | 
						|
    struct Exception : std::runtime_error
 | 
						|
    {
 | 
						|
        explicit Exception(std::string_view message, std::string_view path)
 | 
						|
            : std::runtime_error([&] {
 | 
						|
                std::string result = "NIFFile Error: ";
 | 
						|
                result += message;
 | 
						|
                result += " when reading ";
 | 
						|
                result += path;
 | 
						|
                return result;
 | 
						|
            }())
 | 
						|
        {
 | 
						|
        }
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |