issue #2433:Modify ScriptHandlerMgr's enum to enum class and modify some related functions