Code example for Exception

Methods: getMessage

0
			// Begin recording. 
			try { 
				mRecorder.prepare();
				mRecorder.start();
			} catch (Exception e) {
				Log.d(TAG, "Recorder start: " + e.getMessage());
				stop(); 
			} 
		} 
	} 
 
	public void stop() { 
		stopRecorder(); 
 
		if (mCamera != null) {
			mCamera.lock();
			mCamera.release();
			mCamera = null;
		} 
	} 
 
	public void stopRecorder() { 
		if (mRecorder != null) {
			try { 
				mRecorder.stop();
				mRecorder.reset();
				mRecorder.release();
			} catch (Exception e) {
				Log.d(TAG, "Recorder stop: " + e.getMessage());
			} 
			mRecorder = null;
		} 
	}