Exception: Bdb::DbError

Inherits:
StandardError
  • Object
show all
Defined in:
ext/bdb.c,
ext/bdb.c

Overview

Errors generated by methods under the Bdb hierarchy will be of this class unless Ruby itself raises the error.

Instance Method Summary collapse

Constructor Details

#initializeObject

An error can only be generated internally


96
97
98
99
100
101
102
# File 'ext/bdb.c', line 96

VALUE err_initialize(VALUE obj, VALUE message, VALUE code)
{
  VALUE args[1];
  args[0]=message;
  rb_call_super(1,args);
  return rb_ivar_set(obj,fv_err_code,code);
}

Instance Method Details

#codeBdb error code integer

Returns:


109
110
111
112
# File 'ext/bdb.c', line 109

VALUE err_code(VALUE obj)
{
  return rb_ivar_get(obj,fv_err_code);
}