File indexing completed on 2024-06-16 05:02:04

0001 /*
0002  * SPDX-FileCopyrightText: 2008 Trevor Pounds
0003  * SPDX-License-Identifier: MIT
0004  */
0005 
0006 #ifndef __MOCKITOPP_EXCEPTIONS_HPP__
0007 #define __MOCKITOPP_EXCEPTIONS_HPP__
0008 
0009 #include <exception>
0010 
0011 namespace mockitopp
0012 {
0013    #define MOCKITO_EXCEPTION(EEE) struct EEE : public ::std::exception {};
0014 
0015    MOCKITO_EXCEPTION(partial_implementation_exception)
0016    MOCKITO_EXCEPTION(missing_implementation_exception)
0017 
0018    MOCKITO_EXCEPTION(less_invocations_expected);
0019    MOCKITO_EXCEPTION(more_invocations_expected);
0020    MOCKITO_EXCEPTION(zero_invocations_expected);
0021 
0022    #undef MOCKITO_EXCEPTION
0023 } // namespace mockitopp
0024 
0025 #endif //__MOCKITOPP_EXCEPTIONS_HPP__