Struct oracle::DbError [−][src]
pub struct DbError { /* fields omitted */ }
Oracle database error or ODPI-C error
Methods
impl DbError
[src]
impl DbError
pub 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
) -> DbError
pub fn code(&self) -> i32
[src]
pub fn code(&self) -> i32
Oracle 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) -> &str
error message
pub fn fn_name(&self) -> &str
[src]
pub fn fn_name(&self) -> &str
function name in ODPI-C used by rust-oracle
pub fn action(&self) -> &str
[src]
pub fn action(&self) -> &str
action name in ODPI-C used by rust-oracle
Trait Implementations
impl Debug for DbError
[src]
impl Debug for DbError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for DbError
[src]
impl Eq for DbError
impl PartialEq for DbError
[src]
impl PartialEq for DbError
fn eq(&self, other: &DbError) -> bool
[src]
fn eq(&self, other: &DbError) -> bool
This 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) -> bool
This method tests for !=
.
impl Clone for DbError
[src]
impl Clone for DbError