summaryrefslogtreecommitdiff
path: root/db/repl/rs_exception.h
blob: e71cad277c1a262b4aa64c818d4262109772bd43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// @file rs_exception.h

#pragma once

namespace mongo { 

    class VoteException : public std::exception { 
    public:
        const char * what() const throw () { return "VoteException"; }
    };

    class RetryAfterSleepException : public std::exception { 
    public:
        const char * what() const throw () { return "RetryAfterSleepException"; }
    };

}