fix exception class to frontend