raise exeptions for categories