Compartir a través de


Error Handling Function

Topic Last Modified: 2006-06-11

Many of the application security methods return an error object by using the CreateSecurityError function in the Security.js file as shown here. This object is referred to in this documentation as the objResult object.

function CreateSecurityError(nNumber, strDescription)
{
   var   error = new Object;

   if (typeof(nNumber) == "undefined")
      error.number = 0;
   else{
       error.number = MakeNegativeLong(nNumber);
   }

   if (typeof(strDescription) == "undefined")
      error.description = "No error";
   else
      error.description = strDescription;

   return error;
}