Skip to content

Commit 6a6ad3f

Browse files
committed
can: Add Other error kind
1 parent 402f1cf commit 6a6ad3f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/can/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ pub enum ErrorKind {
8787
/// An ACK error shall be detected by a transmitter whenever it does not
8888
/// monitor a dominant bit during the ACK slot.
8989
Ack,
90+
91+
/// A different error occurred. The original error may contain more information.
92+
Other,
9093
}
9194

9295
impl Error for ErrorKind {
@@ -110,6 +113,10 @@ impl core::fmt::Display for ErrorKind {
110113
"A fixed-form bit field contains one or more illegal bits"
111114
),
112115
Self::Ack => write!(f, "Transmitted frame was not acknowledged"),
116+
Self::Other => write!(
117+
f,
118+
"A different error occurred. The original error may contain more information"
119+
),
113120
}
114121
}
115122
}

0 commit comments

Comments
 (0)