Struct intercom::ComError
[−]
[src]
pub struct ComError { pub hresult: HRESULT, pub error_info: Option<ErrorInfo>, }
Error structure containing the available information on a COM error.
Fields
hresult: HRESULT
HRESULT
that triggered the error.
error_info: Option<ErrorInfo>
Possible detailed error info.
Methods
impl ComError
[src]
pub fn new_hr(hresult: HRESULT) -> ComError
[src]
Constructs a new ComError
from a HRESULT
code.
pub fn new_message(hresult: HRESULT, description: String) -> ComError
[src]
Construts a new ComError
with a given message.
pub fn description(&self) -> Option<&str>
[src]
Gets the description if it's available.