提交 e54d98dc authored 作者: Serhij S's avatar Serhij S

a versatile API error

上级 30a6e082
...@@ -67,6 +67,9 @@ pub enum Error { ...@@ -67,6 +67,9 @@ pub enum Error {
/// I/O and threading errors /// I/O and threading errors
#[error("I/O error {0}")] #[error("I/O error {0}")]
IO(String), IO(String),
/// 3rd party API errors
#[error("API error {0}: {1}")]
API(String, i64),
/// Real-time engine error: unable to get the system thread id /// Real-time engine error: unable to get the system thread id
#[error("RT SYS_gettid {0}")] #[error("RT SYS_gettid {0}")]
RTGetTId(libc::c_int), RTGetTId(libc::c_int),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论