1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    8
    Vote Rating
    0
    GFS is on a distinguished road

      0  

    Default how do you catch sql errors when using ext-air wrappers?

    how do you catch sql errors when using ext-air wrappers?


    I have some data that I am inserting into my local SQLite database via the proxy (proxy.insert(data[])) bypassing the store. Obviously every thing works fine as long as the data is as the corresponding table expects it (eg. text for TEXT, integers for INTEGER, etc..) but when the data is wrong for the expected data type the AIR application throws an SQLErrorEvent as follows:

    Code:
    SQLError: 'Error #3132: Data type mismatch.', details:'could not convert text value to numeric value.', operation:'execute', detailID:'2300'
        at flash.data::SQLStatement/internalExecute()
        at flash.data::SQLStatement/execute()
    So I put in an Event Listener for SQLErrorEvent attached to the Air.Connection object named for this example airConn:
    Code:
    airConn.addEventListener(air.SQLErrorEvent.ERROR, sqlErrorHandler);
    
    function sqlErrorHandler(e){
     //error handling stuff here.
    }
    And this is where I am running into a problem:

    Code:
    TypeError: Value undefined does not allow function calls.
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()
    The reason I am posing this here is that I am using the ext-air wrappers for all my SQL calls and table manipulations. obviously the way I am doing this is wrong, how is it that I need to set up my listeners to catch these errors????

  2. #2
    Ext User
    Join Date
    Jan 2009
    Posts
    8
    Vote Rating
    0
    GFS is on a distinguished road

      0  

    Default


    Okay. Taking some hours away from the problem and the solution slapped me in the face. Due to how my code is I was not adding the event listener to the connection properly, it was just another "duh" moment.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi