Siebel eScript Language Reference > Siebel eScript Commands >

The Exception Object


The Exception object contains exceptions being thrown in the case of a failed operation.

Properties

errCode (This property contains the error number.)

errText (This property contains a textual description of the error.)

Here is an example of the Exception object:

try
}
   var oBO = TheApplication().GetService("Incorrect name");
}
catch (e)
}
   var sText = e.errText;
   var nCode = e.errCode;
}

Siebel eScript Language Reference