YUI_THROW_ERRNO_MSG1 concats std::string MSG + ": " + char* strerror ( errno ), so error as number is not preserved. That's the reason I put in errno as numerical value, too.

yuiError really is obsolete, so I'll drop it when I'm implementing your requested changes/improvements.