Implement Error for SchedulerError
@@ -31,6 +31,8 @@ pub mod multi;
pub mod parallel;
pub mod serial;
+use std::error::Error;
+
use crate::context::ContextId;
use crate::protocol::batch::BatchPair;
use crate::protocol::receipt::TransactionReceipt;
@@ -124,6 +126,8 @@ pub enum SchedulerError {
UnexpectedNotification(String),
}
+impl Error for SchedulerError {}
+
impl std::fmt::Display for SchedulerError {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match *self {
