mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	 067cde85f1
			
		
	
	
		067cde85f1
		
	
	
	
	
		
			
			1) All slicer's exceptions are now derived from Slic3r::Exception. 2) New exceptions are defined for slicing errors. 3) Exceptions are propagated to the Plater to show. It remains to modify the slicing back-end to throw the new SlicingError exceptions instead of std::runtime_error and to show the other exceptions by a message dialog instead of a notification.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			284 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			284 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <exception> 
 | |
| namespace Slic3r {
 | |
| 
 | |
| class ConfigError : public Slic3r::RuntimeError { 
 | |
| 	using Slic3r::RuntimeError::RuntimeError;
 | |
| };
 | |
| 
 | |
| namespace GUI {
 | |
| 
 | |
| class ConfigGUITypeError : public ConfigError { 
 | |
| 	using ConfigError::ConfigError;
 | |
| };
 | |
| 
 | |
| } // namespace GUI
 | |
| } // namespace Slic3r
 |