QGIS/scripts
Nyall Dawson 0f78277a59 Add SIP_THROW annotation
SIP uses the deprecated throw(...) annotation in order to determine
which exceptions may be thrown by c++ code. Without these, only
a generic unknown exception is throw, which is of limited value
to Python code (losing any valuable message and exception type).

So we add a new SIP_THROW macro, which can be added to method's
declaration:

    bool doSomething() SIP_THROW( QgsCsException );

This is ignored outside of sipify, so we don't actually use
the deprecated c++ throw annotations, but sipify picks it up
and adds the appropriate change to the sip definition for
the method:

   bool doSomething() throw( QgsCsException );

This means that calling the method from Python will raise
the QgsCsException instead of a generic exception.
2018-05-16 04:35:17 +10:00
..
2018-05-11 10:55:34 -04:00
2018-02-18 20:53:40 +01:00
2018-02-18 20:53:40 +01:00
2018-04-08 10:08:04 +02:00
2018-02-19 22:12:09 +01:00
2018-02-23 07:40:14 +01:00
2018-05-16 04:35:17 +10:00
2018-02-23 00:53:22 +01:00