mirror of
				https://github.com/Telecominfraproject/oopt-gnpy.git
				synced 2025-10-31 10:07:57 +00:00 
			
		
		
		
	 2f1ab9cc50
			
		
	
	2f1ab9cc50
	
	
	
		
			
			Create an exception in case of an error due to spectrum problem eg if spectrum request is not correct if values are not correct. use it instead of exit Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			722 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			722 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/env python3
 | |
| # -*- coding: utf-8 -*-
 | |
| 
 | |
| '''
 | |
| gnpy.core.exceptions
 | |
| ====================
 | |
| 
 | |
| Exceptions thrown by other gnpy modules
 | |
| '''
 | |
| 
 | |
| 
 | |
| class ConfigurationError(Exception):
 | |
|     '''User-provided configuration contains an error'''
 | |
| 
 | |
| class EquipmentConfigError(ConfigurationError):
 | |
|     '''Incomplete or wrong configuration within the equipment library'''
 | |
| 
 | |
| class NetworkTopologyError(ConfigurationError):
 | |
|     '''Topology of user-provided network is wrong'''
 | |
| 
 | |
| class ServiceError(Exception):
 | |
|     '''Service of user-provided request is wrong'''
 | |
| 
 | |
| class DisjunctionError(ServiceError):
 | |
|     '''Disjunction of user-provided request can not be satisfied'''
 | |
| 
 | |
| class SpectrumError(Exception):
 | |
|     '''Spectrum errors of the program''' |