I didn't use this enum yet. :) However, I think that xlib and xcb could use this for error handling instead of each raw error-code. For example, a XCB_WINDOW (XCB_EVENT_ERROR_BAD_WINDOW in old xcb version) and a BadWindow in Xlib can be replaced to ECORE_X_ERROR_CODE_BAD_WINDOW.
------- Original Message ------- Sender : Carsten Haitzler<[email protected]> Date : 2012-05-24 13:27 (GMT+09:00) Title : Re: [E-devel] [Patch] Add Ecore_X_Error_Code enumeration On Tue, 22 May 2012 01:30:21 +0000 (GMT) Doyoun Kang said: ok - in svn, BUT... i still want to know.. what errors are u having to handle and why? > I attached file. :) > > ------- Original Message ------- > Sender : [email protected] > Date : 2012-05-22 10:24 (GMT+09:00) > Title : Re: [E-devel] [Patch] Add Ecore_X_Error_Code enumeration > > I added ChangeLog, NEWS, document. :) > And this will be used for error handling. > > ------------------------------------------ > Ecore_X_Error_Code err_code; > err_code = ecore_x_error_code_get(); > if (err_code == ECORE_X_ERROR_CODE_SUCCESS) > { > // Do something > } > else if (err_code == ECORE_X_ERROR_CODE_BAD_WINDOW) > { > // Do something > } > else > { > // Do something > } > ------------------------------------------ > > This enumeration can be used both X and XCB. > > Doyoun > > > ------- Original Message ------- > Sender : Vincent Torri > Date : 2012-05-21 17:24 (GMT+09:00) > Title : Re: [E-devel] [Patch] Add Ecore_X_Error_Code enumeration > > and where are these error codes used in the xlib and xcb code ? > > Vincent > > On Mon, May 21, 2012 at 10:23 AM, Vincent Torri wrote: > > missing ChangeLog entry > > missing NEWS entry > > missing doc (don't forget @since) > > > > Vincent > > > > On Mon, May 21, 2012 at 10:20 AM, Doyoun Kang wrote: > >> Dear All, > >> > >> I added the Ecore_X_Error_Code enumeration which wraps X error codes. > >> I think this will be useful when the X error occurs. > >> Please check the attached patch file. > >> > >> Thanks. > >> -- > >> Doyoun Kang > >> ------------------------------------------------------------------------------ > >> Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. Discussions > >> will include endpoint security, mobile security and the latest in malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> _______________________________________________ > >> enlightenment-devel mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > >> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
