Struct oracle::DbError [−][src]
pub struct DbError { /* fields omitted */ }Oracle database error or ODPI-C error
Methods
impl DbError[src]
impl DbErrorpub fn new(
code: i32,
offset: u16,
message: String,
fn_name: String,
action: String
) -> DbError[src]
pub fn new(
code: i32,
offset: u16,
message: String,
fn_name: String,
action: String
) -> DbErrorpub fn code(&self) -> i32[src]
pub fn code(&self) -> i32Oracle error code if OciError. always zero if DpiError
pub fn offset(&self) -> u16[src]
pub fn offset(&self) -> u16? (used for Batch Errors?)
pub fn message(&self) -> &str[src]
pub fn message(&self) -> &strerror message
pub fn fn_name(&self) -> &str[src]
pub fn fn_name(&self) -> &strfunction name in ODPI-C used by rust-oracle
pub fn action(&self) -> &str[src]
pub fn action(&self) -> &straction name in ODPI-C used by rust-oracle
Trait Implementations
impl Debug for DbError[src]
impl Debug for DbErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for DbError[src]
impl Eq for DbErrorimpl PartialEq for DbError[src]
impl PartialEq for DbErrorfn eq(&self, other: &DbError) -> bool[src]
fn eq(&self, other: &DbError) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &DbError) -> bool[src]
fn ne(&self, other: &DbError) -> boolThis method tests for !=.
impl Clone for DbError[src]
impl Clone for DbError