Project

General

Profile

Statistics
| Branch: | Revision:

root / src / sim / parsim / creceivedexception.cc @ 81ad8b66

History | View | Annotate | Download (1.13 KB)

1 01873262 Georg Kunz
//=========================================================================
2
//  CRECEIVEDEXCEPTION.CC - part of
3
//
4
//                  OMNeT++/OMNEST
5
//           Discrete System Simulation in C++
6
//
7
//  Author: Andras Varga, 2003
8
//          Dept. of Electrical and Computer Systems Engineering,
9
//          Monash University, Melbourne, Australia
10
//
11
//=========================================================================
12
13
/*--------------------------------------------------------------*
14
  Copyright (C) 2003-2008 Andras Varga
15
  Copyright (C) 2006-2008 OpenSim Ltd.
16

17
  This file is distributed WITHOUT ANY WARRANTY. See the file
18
  `license' for details on this and other legal matters.
19
*--------------------------------------------------------------*/
20
21
#include "creceivedexception.h"
22
23
USING_NAMESPACE
24
25
cReceivedException::cReceivedException(int sourceProcId, const char *msg)
26
 : cException("Error occurred in procId=%d: %s", sourceProcId, msg)
27
{
28
}
29
30
cReceivedTerminationException::cReceivedTerminationException(int sourceProcId, const char *msg)
31
 : cTerminationException("Terminating simulation on request from procId=%d: %s", sourceProcId, msg)
32
{
33
}
34
35