Statistics
| Branch: | Revision:

root / src / common / exception.cc @ e1750c09

History | View | Annotate | Download (865 Bytes)

1 01873262 Georg Kunz
//=========================================================================
2
//  EXCEPTION.CC - part of
3
//                  OMNeT++/OMNEST
4
//           Discrete System Simulation in C++
5
//
6
//  Author: Andras Varga
7
//
8
//=========================================================================
9
10
/*--------------------------------------------------------------*
11
  Copyright (C) 2006-2008 OpenSim Ltd.
12

13
  This file is distributed WITHOUT ANY WARRANTY. See the file
14
  `license' for details on this and other legal matters.
15
*--------------------------------------------------------------*/
16
17
#include <stdio.h>
18
#include <stdarg.h>
19
#include "exception.h"
20
#include "commonutil.h"
21
22
USING_NAMESPACE
23
24
25
opp_runtime_error::opp_runtime_error(const char *messagefmt, ...) : std::runtime_error("")
26
{
27
    char buf[1024];
28
    VSNPRINTF(buf, 1024, messagefmt);
29
    errormsg = buf;
30
}
31