| 
					
				 | 
			
			
				@@ -19,7 +19,7 @@ Launchpad::Launchpad() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(!midiout.isPortOpen()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		throw "no launchpad for midi output found"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		throw LaunchpadNotFoundError("no launchpad for midi output found"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     for(unsigned int i=0; i<midiin.getPortCount(); i++) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,7 +32,7 @@ Launchpad::Launchpad() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(!midiin.isPortOpen()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		throw "no launchpad for midi input found"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		throw LaunchpadNotFoundError("no launchpad for midi input found"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	for(KeyCoordinate x = 0; x < width; x++) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -172,4 +172,9 @@ void Launchpad::setKeyPressed(KeyCoordinate x, KeyCoordinate y, bool pressed) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     keyBeingPressed[x][y] = pressed; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+LaunchpadNotFoundError::LaunchpadNotFoundError(const char* message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    : parent(message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } // namespace 
			 |