Skip to content

Commit 7886ad7

Browse files
committed
feat: adds SpringErrno::Null
1 parent 7d65a2f commit 7886ad7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/spring_errno.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub enum SpringErrno {
2525
Unavailable = -9,
2626
Sql = -10,
2727
InvalidConfig = -11,
28+
Null = -12,
2829

2930
/// Insufficient buffer size
3031
CInsufficient = -126,
@@ -45,6 +46,7 @@ impl From<&SpringError> for SpringErrno {
4546
SpringError::Unavailable { .. } => SpringErrno::Unavailable,
4647
SpringError::Sql(_) => SpringErrno::Sql,
4748
SpringError::InvalidConfig { .. } => SpringErrno::InvalidConfig,
49+
SpringError::Null { .. } => SpringErrno::Null,
4850
}
4951
}
5052
}

0 commit comments

Comments
 (0)