Client-Side Information Objects > NetConnection information objects

 

NetConnection information objects

The following events notify you when certain NetConnection activities occur.

Code property

Level property

Meaning

NetConnection.Call.Failed

Error

The NetConnection.call method was not able to invoke the server-side method or command.*

NetConnection.Connect.AppShutdown

Error

The application has been shut down (for example, if the application is out of memory resources and must be shut down to prevent the server from crashing) or the server has been shut down.

NetConnection.Connect.Closed

Status

The connection was successfully closed.

NetConnection.Connect.Failed

Error

The connection attempt failed; for example, the server is not running.

NetConnection.Connect.InvalidApp

Error

The application name specified during the connection attempt was not found on the server.

NetConnection.Connect.Rejected

Error

The client does not have permission to connect to the application, or the application expected different parameters from those that were passed, or the application specifically rejected the client.**

NetConnection.Connect.Success

Status

The connection attempt succeeded.

* This information object also has a description property, which is a string that provides a more specific reason for the failure.

** This information object also has an application property, which contains the value returned by the application.rejectConnection server-side method.