Project

General

Profile

Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (1.42 KB)

1
//=========================================================================
2
//  CRECEIVEDEXCEPTION.H - 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
#ifndef __CRECEIVEDEXCEPTION_H__
22
#define __CRECEIVEDEXCEPTION_H__
23

    
24
#include "cexception.h"
25

    
26
NAMESPACE_BEGIN
27

    
28
/**
29
 * Represents an exception that has been received from other partitions.
30
 *
31
 * @ingroup Parsim
32
 */
33
class cReceivedException : public cException
34
{
35
  public:
36
    /**
37
     * Constructor.
38
     */
39
    cReceivedException(int sourceProcId, const char *msg);
40
};
41

    
42
/**
43
 * Represents a termination exception that has been received from other
44
 * partitions.
45
 *
46
 * @ingroup Parsim
47
 */
48
class cReceivedTerminationException : public cTerminationException
49
{
50
  public:
51
    /**
52
     * Constructor.
53
     */
54
    cReceivedTerminationException(int sourceProcId, const char *msg);
55
};
56

    
57
NAMESPACE_END
58

    
59

    
60
#endif
61

    
62

    
63