f0b2b6cf49c10c7e09793d6a0c4e5eada3816313
[deliverable/titan.core.git] / mctr2 / mctr / MctrError.cc
1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2015 Ericsson Telecom AB
3 // All rights reserved. This program and the accompanying materials
4 // are made available under the terms of the Eclipse Public License v1.0
5 // which accompanies this distribution, and is available at
6 // http://www.eclipse.org/legal/epl-v10.html
7 ///////////////////////////////////////////////////////////////////////////////
8 #include <stdarg.h>
9
10 #include "../../common/memory.h"
11 #include "../../core/Error.hh"
12 #include "MainController.h"
13
14 void TTCN_error(const char *fmt, ...)
15 {
16 char *str = mcopystr("Error during encoding/decoding of a message: ");
17 va_list ap;
18 va_start(ap, fmt);
19 str = mputprintf_va_list(str, fmt, ap);
20 va_end(ap);
21 mctr::MainController::error("%s", str);
22 Free(str);
23 throw TC_Error();
24 }
This page took 0.043684 seconds and 5 git commands to generate.