Code example for NoSuchPaddingException

Methods: getMessage

0
		} 
		catch(NoSuchAlgorithmException ex) { //TODO notice control structures in error handling
			Log.e("ks", ex.getMessage());//TODO exc-handl
		} 
		catch (NoSuchPaddingException ex) {
			Log.e("ks", ex.getMessage());//TODO exc-handl
		} 
	} 
	 
	private Sender sender;
	private Receiver receiver;
	 
	public void connect() { 
		try { 
			socket = new Socket(InetAddress.getByName(HOST), PingYa_Constants.PORT);
			 
			sender = new Sender(socket.getOutputStream(), crypto);
			receiver = new Receiver(socket.getInputStream(), crypto, /*TODO*/null);
			 
			receiver.start();
		}