Fixed invalid callback exception to extend exception class.