xInfo.num Method
Retrieves the number of exceptions of the specified type in the Infolog buffer.
Syntax
public int num([Exception exceptionType])
Run On
Called
Parameters
- exceptionType
Type: Exception Enumeration
A Exception system enumeration value that indicates the exception type to count; optional.
Return Value
Type: int
An integer that represents the number of exceptions of the type specified by the exceptionType parameter, or the total number of lines in the Infolog if no parameter is specified.
Remarks
For more information, see Exception Handling with try and catch Keywords.
Examples
The following example returns the number of warnings in the Infolog.
{
print infolog.num(Exception::Warning);
pause;
}