Here is a python level example:
import pygsl.histogram import pygsl.errors hist=pygsl.histogram.histogram2d(100,100) try: hist[-1,-1]=0 except pygsl.errors.gsl_Error,err: print err
input domain error: index i lies outside valid range of 0 .. nx - 1
An exception are ufuncs in the testings.sf module (see section12.2).