TPIE
2362a60
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
exception.h
Go to the documentation of this file.
1
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*-
2
// vi:set ts=4 sts=4 sw=4 noet :
3
// Copyright 2008, The TPIE development team
4
//
5
// This file is part of TPIE.
6
//
7
// TPIE is free software: you can redistribute it and/or modify it under
8
// the terms of the GNU Lesser General Public License as published by the
9
// Free Software Foundation, either version 3 of the License, or (at your
10
// option) any later version.
11
//
12
// TPIE is distributed in the hope that it will be useful, but WITHOUT ANY
13
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15
// License for more details.
16
//
17
// You should have received a copy of the GNU Lesser General Public License
18
// along with TPIE. If not, see <http://www.gnu.org/licenses/>
19
25
26
#ifndef __TPIE_EXCEPTION_H__
27
#define __TPIE_EXCEPTION_H__
28
#include <stdexcept>
29
#include <string>
30
31
namespace
tpie {
32
33
struct
exception
:
public
std::runtime_error {
34
exception
(
const
std::string & s): std::runtime_error(s) {};
35
};
36
37
struct
maybe_exception
:
public
exception
{
38
maybe_exception
(
const
std::string & s):
exception
(s) {};
39
};
40
41
struct
invalid_argument_exception
:
public
exception
{
42
invalid_argument_exception
(
const
std::string & s):
exception
(s) {};
43
};
44
45
struct
stream_exception
:
public
exception
{
46
stream_exception
():
exception
(
""
) {};
47
stream_exception
(
const
std::string & s):
exception
(s) {};
48
};
49
50
struct
io_exception
:
public
stream_exception
{
51
io_exception
(
const
std::string & s):
stream_exception
(s) {};
52
};
53
54
struct
out_of_space_exception
:
public
io_exception
{
55
out_of_space_exception
(
const
std::string & s):
io_exception
(s) {};
56
};
57
58
struct
invalid_file_exception
:
public
stream_exception
{
59
invalid_file_exception
(
const
std::string & s):
stream_exception
(s) {};
60
};
61
62
struct
end_of_stream_exception
:
public
stream_exception
{
63
end_of_stream_exception
():
stream_exception
(
""
) {};
64
};
65
66
struct
job_manager_exception
:
public
exception
{
67
job_manager_exception
():
exception
(
""
) {};
68
};
69
76
struct
out_of_resource_error
:
public
exception
{
77
out_of_resource_error
(
const
std::string & s):
exception
(s) {}
78
};
79
80
struct
out_of_memory_error
:
public
out_of_resource_error
{
81
out_of_memory_error
(
const
std::string & s):
out_of_resource_error
(s) {}
82
};
83
84
struct
out_of_files_error
:
public
out_of_resource_error
{
85
out_of_files_error
(
const
std::string & s):
out_of_resource_error
(s) {}
86
};
87
88
}
89
#endif //__TPIE_EXCEPTION_H__
tpie::io_exception
Definition:
exception.h:50
tpie::end_of_stream_exception
Definition:
exception.h:62
tpie::out_of_files_error
Definition:
exception.h:84
tpie::invalid_argument_exception
Definition:
exception.h:41
tpie::job_manager_exception
Definition:
exception.h:66
tpie::out_of_resource_error
Thrown when trying to allocate too much of a resource.
Definition:
exception.h:76
tpie::maybe_exception
Definition:
exception.h:37
tpie::stream_exception
Definition:
exception.h:45
tpie::exception
Definition:
exception.h:33
tpie::out_of_space_exception
Definition:
exception.h:54
tpie::invalid_file_exception
Definition:
exception.h:58
tpie::out_of_memory_error
Definition:
exception.h:80
from TPIE 2362a60 (
browse source
). Generated on Fri Mar 31 2017 00:01:15 by
Doxygen
1.8.7