Exception classes were wrongly exposed.