<< Click to Display Table of Contents >>

GetErrorMessageByCode

에러 코드에 해당하는 에러 메시지를 가져옵니다.

Prototype

string GetErrorMessageByCode(long ErrorCode)

Parameters

ErrorCode

에러 코드

Example

function getErrorMessageByCode(){

   var rep = OZCreator.GetBuiltInObject(OZBuiltInObject.REPOSITORY);

   var login = rep.Login("admin","admin");

   if (login) {

       var groupPath = "/";

       var groupAdminNames = new Array();

       var result = rep.GetGroupAdminListInGroup(groupPath, groupAdminNames);

       if (result == true) {

           for (i=0; i < groupAdminNames.length; i++) {

               _DEBUG("result="+result+"    groupAdminNames["+i+"]="+groupAdminNames[i]);

           }

       } else {

           _DEBUG("result="+result+"["+rep.GetLastErrorCode()+"] "+rep.GetErrorMessageByCode(rep.GetLastErrorCode()));

       }

       rep.Logout();

   }

}