Changeset 5974


Ignore:
Timestamp:
Apr 25, 2019 10:22:51 AM (5 years ago)
Author:
riza
Message:

Misc (re #2147): Allow application exceptions to be enriched with Error specific information on CSharp binding. Thanks to Jeremy Franzen for the suggestion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/swig/pjsua2.i

    r5972 r5974  
    2424      //Py_Exit(1); 
    2525    } 
     26  } 
     27#endif 
     28 
     29#ifdef SWIGCSHARP 
     30  %typemap(throws, canthrow=1) pj::Error { 
     31    SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException,  
     32        (std::string("C++ pj::Error:\n") + $1.info(true).c_str()).c_str()); 
     33     
     34    return $null; 
    2635  } 
    2736#endif 
Note: See TracChangeset for help on using the changeset viewer.