package sk.yonban.aspectchanges;

public aspect ExceptionLogger {
	after() throwing(RuntimeException e):  execution (* *.*(..)) {
		System.out.println("RuntimeException: " + e.getMessage());
	}
	
	after() throwing(Exception e): execution(* *.*(..)  throws *) {
		System.out.println("Exception: "+e.getMessage());
	}
}
