fix exception class for latest cake3