Added callback encapsulation class and corresponding exception.