Method: OCIError#code

Defined in:
ext/oci8/error.c

#codeObject

begin

— OCIError#code()

end



186
187
188
189
190
191
192
193
# File 'ext/oci8/error.c', line 186

static VALUE oci8_error_code(VALUE self)
{
    VALUE ary = rb_ivar_get(self, oci8_id_code);
    if (RARRAY_LEN(ary) == 0) {
        return Qnil;
    }
    return RARRAY_PTR(ary)[0];
}