Fix some `core.exception.*Error` functions attributes in modules.