mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			672 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			672 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
 | |
| class cloudstackAPIException(Exception):
 | |
|     def __init__(self, cmd = "", result = ""):
 | |
|         self.errorMsg = "Execute cmd: %s failed, due to: %s"%(cmd, result)
 | |
|     def __str__(self):
 | |
|         return self.errorMsg
 | |
|     
 | |
| class InvalidParameterException(Exception):
 | |
|     def __init__(self, msg=''):
 | |
|         self.errorMsg = msg
 | |
|     def __str__(self):
 | |
|         return self.errorMsg
 | |
|     
 | |
| class dbException(Exception):
 | |
|     def __init__(self, msg=''):
 | |
|         self.errorMsg = msg
 | |
|     def __str__(self):
 | |
|         return self.errorMsg
 | |
|     
 | |
| class internalError(Exception):
 | |
|     def __init__(self, msg=''):
 | |
|         self.errorMsg = msg
 | |
|     def __str__(self):
 | |
|         return self.errorMsg |