I wonder if a cocoa error has to do with running out of cocoa. Or is it a user error, such as perhaps the cocoa was added incorrectly? And what about that -1, does that mean the error there is no limit to how many cocoa errors have occurred? Or is it like when you take a sip of hot cocoa to find it is actually coffee. Yuck.
Cocoa is an object oriented API for the MacOS. It has encountered an error. -1 means basically it doesn’t know what the heck is going on. This is similar to the NullReferenceException in .NET. Its easy to see what is wrong, there is null reference where there ought not be, but there is no good way to tell where.