Menu

#2 .Connected Throws Exception

v1.0_(example)
open
nobody
None
5
2006-03-06
2006-03-06
Anonymous
No

.Connected will throw exception if you try to access
the property before connecting to a source. Reason
being is because the internal variable "socket" does
get assigned a value until "connect". Therefore the
internal "socket" variable is null.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB