/*
 * call-seq:
 *              error_code -> int
 *
 * The error code associated with this exception, as defined by
 * Spread.
 */
static VALUE
sperr_error_code(VALUE self)
{
        struct SpreadError *sp_err;

        Data_Get_Struct(self, struct SpreadError, sp_err);
        return INT2NUM(sp_err->err_code);
}