Last sync 2016.04.01
[deliverable/titan.core.git] / mctr2 / mctr / MctrError.cc
1 /******************************************************************************
2 * Copyright (c) 2000-2016 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 * Contributors:
9 * Balasko, Jeno
10 * Raduly, Csaba
11 *
12 ******************************************************************************/
13 #include <stdarg.h>
14
15 #include "../../common/memory.h"
16 #include "../../core/Error.hh"
17 #include "MainController.h"
18
19 void TTCN_error(const char *fmt, ...)
20 {
21 char *str = mcopystr("Error during encoding/decoding of a message: ");
22 va_list ap;
23 va_start(ap, fmt);
24 str = mputprintf_va_list(str, fmt, ap);
25 va_end(ap);
26 mctr::MainController::error("%s", str);
27 Free(str);
28 throw TC_Error();
29 }
This page took 0.034944 seconds and 5 git commands to generate.