Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
Exception.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_EXCEPTION_H_
36
#define _BLAZE_UTIL_EXCEPTION_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <stdexcept>
44
45
46
47
48
//=================================================================================================
49
//
50
// EXCEPTION MACROS
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
93
#ifndef BLAZE_THROW
94
# define BLAZE_THROW( EXCEPTION ) throw EXCEPTION
95
#endif
96
//*************************************************************************************************
97
98
99
//*************************************************************************************************
138
#ifndef BLAZE_THROW_BAD_ALLOC
139
# define BLAZE_THROW_BAD_ALLOC BLAZE_THROW( std::bad_alloc() )
140
#endif
141
//*************************************************************************************************
142
143
144
//*************************************************************************************************
186
#ifndef BLAZE_THROW_LOGIC_ERROR
187
# define BLAZE_THROW_LOGIC_ERROR( MESSAGE ) BLAZE_THROW( std::logic_error( MESSAGE ) )
188
#endif
189
//*************************************************************************************************
190
191
192
//*************************************************************************************************
234
#ifndef BLAZE_THROW_INVALID_ARGUMENT
235
# define BLAZE_THROW_INVALID_ARGUMENT( MESSAGE ) BLAZE_THROW( std::invalid_argument( MESSAGE ) )
236
#endif
237
//*************************************************************************************************
238
239
240
//*************************************************************************************************
282
#ifndef BLAZE_THROW_LENGTH_ERROR
283
# define BLAZE_THROW_LENGTH_ERROR( MESSAGE ) BLAZE_THROW( std::length_error( MESSAGE ) )
284
#endif
285
//*************************************************************************************************
286
287
288
//*************************************************************************************************
330
#ifndef BLAZE_THROW_OUT_OF_RANGE
331
# define BLAZE_THROW_OUT_OF_RANGE( MESSAGE ) BLAZE_THROW( std::out_of_range( MESSAGE ) )
332
#endif
333
//*************************************************************************************************
334
335
336
//*************************************************************************************************
378
#ifndef BLAZE_THROW_RUNTIME_ERROR
379
# define BLAZE_THROW_RUNTIME_ERROR( MESSAGE ) BLAZE_THROW( std::runtime_error( MESSAGE ) )
380
#endif
381
//*************************************************************************************************
382
383
384
//*************************************************************************************************
426
#ifndef BLAZE_THROW_OVERFLOW_ERROR
427
# define BLAZE_THROW_OVERFLOW_ERROR( MESSAGE ) BLAZE_THROW( std::overflow_error( MESSAGE ) )
428
#endif
429
//*************************************************************************************************
430
431
432
//*************************************************************************************************
474
#ifndef BLAZE_THROW_UNDERFLOW_ERROR
475
# define BLAZE_THROW_UNDERFLOW_ERROR( MESSAGE ) BLAZE_THROW( std::underflow_error( MESSAGE ) )
476
#endif
477
//*************************************************************************************************
478
479
#endif
Generated by
1.18.0