aboutsummaryrefslogblamecommitdiffstats
path: root/library/cpp/messagebus/test/helper/message_handler_error.cpp
blob: f22f46fa6c6f5dfc7b416decaf6114fd779c8d6b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                  




                                                                                    
                                                                       

                                                                                    
                                  

                                                                         
                                  

                                                                                    
                                                                       

                                                            
                                  
 
#include "message_handler_error.h"

#include <util/system/yassert.h>

using namespace NBus;
using namespace NBus::NTest;

void TBusClientHandlerError::OnError(TAutoPtr<TBusMessage>, EMessageStatus status) {
    Y_ABORT("must not be called, status: %s", ToString(status).data());
}

void TBusClientHandlerError::OnReply(TAutoPtr<TBusMessage>, TAutoPtr<TBusMessage>) {
    Y_ABORT("must not be called");
}

void TBusClientHandlerError::OnMessageSentOneWay(TAutoPtr<TBusMessage>) {
    Y_ABORT("must not be called");
}

void TBusServerHandlerError::OnError(TAutoPtr<TBusMessage>, EMessageStatus status) {
    Y_ABORT("must not be called, status: %s", ToString(status).data());
}

void TBusServerHandlerError::OnMessage(TOnMessageContext&) {
    Y_ABORT("must not be called");
}