use chunk_store;
use config_file_handler;
use maidsafe_utilities::serialisation::SerialisationError;
use routing::{InterfaceError, MessageId, Request, Response, RoutingError};
use routing::client_errors::{GetError, MutationError};
use routing::messaging;
use std::io;
quick_error! {
#[derive(Debug)]
pub enum InternalError {
ChunkStore(error: chunk_store::Error) {
from()
}
ClientGet(error: GetError) {
from()
}
ClientMutation(error: MutationError) {
from()
}
FailedToFindCachedRequest(message_id: MessageId)
FileHandler(error: config_file_handler::Error) {
from()
}
Io(error: io::Error) {
from()
}
MpidMessaging(error: messaging::Error) {
from()
}
Routing(error: InterfaceError) {
from()
}
RoutingInternal(error: RoutingError) {
from()
}
Serialisation(error: SerialisationError) {
from()
}
UnknownRequestType(request: Request)
UnknownResponseType(response: Response)
InvalidMessage
}
}