A NetricsException is thrown whenever an error occurs.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Class NetricsException
    Inherits Exception
C#
public class NetricsException : Exception
C++
ref class NetricsException : Exception
J#
public class NetricsException extends Exception
JScript
public class NetricsException extends Exception

Remarks

There are two classes of errors. If the ibi™ Patterns - Search Server indicates that an error occured the getErrorCode() method returns a positive integer which corresponds to one of the server's error codes. The second type of error is internal to the interface (invalid arguments passed to a function for instance). In this case, the error code will be negative one.

The NetricsException.getExtendedErrorInformation() can be very useful in dissecting the cause of an error, as it will usually return the exact item which caused the error.

Inheritance Hierarchy

System.Object
   System.Exception
      NetricsServerInterface.NetricsException

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also