CPN
Computational Process Networks
Main Page
Namespaces
Classes
Files
File List
File Members
include
cpn
utils
ErrnoException.h
Go to the documentation of this file.
1
//=============================================================================
2
// Computational Process Networks class library
3
// Copyright (C) 1997-2006 Gregory E. Allen and The University of Texas
4
//
5
// This library is free software; you can redistribute it and/or modify it
6
// under the terms of the GNU Library General Public License as published
7
// by the Free Software Foundation; either version 2 of the License, or
8
// (at your option) any later version.
9
//
10
// This library is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
// Library General Public License for more details.
14
//
15
// The GNU Public License is available in the file LICENSE, or you
16
// can write to the Free Software Foundation, Inc., 59 Temple Place -
17
// Suite 330, Boston, MA 02111-1307, USA, or you can find it on the
18
// World Wide Web at http://www.fsf.org.
19
//=============================================================================
23
#ifndef ERRNOEXCEPTION_H
24
#define ERRNOEXCEPTION_H
25
#pragma once
26
#include <
cpn/common.h
>
27
#include <
cpn/utils/Exception.h
>
28
#include <vector>
29
37
class
ErrnoException
:
public
Exception
{
38
public
:
39
ErrnoException
()
throw
();
40
ErrnoException
(
int
err)
throw
();
41
ErrnoException
(
const
char
*msg,
int
err)
throw
();
42
virtual
~ErrnoException
()
throw
();
43
virtual
const
char
*
what
()
const
throw
();
44
int
Error
()
const
{
return
error
; }
45
private
:
46
void
Fill
() throw();
47
int
error
;
48
std::
string
errorstring
;
49
};
50
#endif
ErrnoException::errorstring
std::string errorstring
Definition:
ErrnoException.h:48
ErrnoException::~ErrnoException
virtual ~ErrnoException()
Definition:
ErrnoException.cc:54
ErrnoException::error
int error
Definition:
ErrnoException.h:47
ErrnoException
Definition:
ErrnoException.h:37
ErrnoException::ErrnoException
ErrnoException()
Definition:
ErrnoException.cc:31
Exception
Definition:
Exception.h:33
common.h
ErrnoException::what
virtual const char * what() const
Definition:
ErrnoException.cc:57
ErrnoException::Fill
void Fill()
Definition:
ErrnoException.cc:61
Exception.h
ErrnoException::Error
int Error() const
Definition:
ErrnoException.h:44
Generated by
1.8.5