Exception: OCIError
- Inherits:
-
OCIException
- Object
- StandardError
- OCIException
- OCIError
- Defined in:
- ext/oci8/error.c,
ext/oci8/error.c
Overview
Subclass of OCIException
The following exceptions are defined as subclasses of OCIError.
-
OCISuccessWithInfo
-
OCINoData (It had been a subclass of OCIException, not OCIError, until ruby-oci8 2.0)
Raised when underlying Oracle Call Interface failed with an Oracle error code such as ORA-00001.
Direct Known Subclasses
Instance Attribute Summary collapse
- #code ⇒ Object readonly
- #parse_error_offset ⇒ Object (also: #parseErrorOffset) readonly
- #sql ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(message, code = nil, sql = nil, parse_error_offset = nil) ⇒ Object
constructor
Creates a new OCIError object.
Constructor Details
#initialize(message, code = nil, sql = nil, parse_error_offset = nil) ⇒ Object
Creates a new OCIError object.
173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'ext/oci8/error.c', line 173
static VALUE oci8_error_initialize(int argc, VALUE *argv, VALUE self)
{
VALUE msg;
VALUE code;
VALUE sql;
VALUE parse_error_offset;
rb_scan_args(argc, argv, "04", &msg, &code, &sql, &parse_error_offset);
rb_call_super(argc > 1 ? 1 : argc, argv);
rb_ivar_set(self, oci8_id_at_code, code);
rb_ivar_set(self, oci8_id_at_sql, sql);
rb_ivar_set(self, oci8_id_at_parse_error_offset, parse_error_offset);
return Qnil;
}
|