author | William Roberts <williamr@symbian.org> |
Tue, 16 Mar 2010 16:12:26 +0000 | |
branch | Symbian2 |
changeset 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
/* |
williamr@2 | 2 |
* Copyright (c) 1996,1997 |
williamr@2 | 3 |
* Silicon Graphics Computer Systems, Inc. |
williamr@2 | 4 |
* |
williamr@2 | 5 |
* Copyright (c) 1999 |
williamr@2 | 6 |
* Boris Fomitchev |
williamr@2 | 7 |
* |
williamr@2 | 8 |
* This material is provided "as is", with absolutely no warranty expressed |
williamr@2 | 9 |
* or implied. Any use is at your own risk. |
williamr@2 | 10 |
* |
williamr@2 | 11 |
* Permission to use or copy this software for any purpose is hereby granted |
williamr@2 | 12 |
* without fee, provided the above notices are retained on all copies. |
williamr@2 | 13 |
* Permission to modify the code and to distribute modified code is granted, |
williamr@2 | 14 |
* provided the above notices are retained, and a notice that the code was |
williamr@2 | 15 |
* modified is included with the above copyright notice. |
williamr@2 | 16 |
* |
williamr@2 | 17 |
*/ |
williamr@2 | 18 |
|
williamr@2 | 19 |
#ifndef _STLP_INTERNAL_STDEXCEPT |
williamr@2 | 20 |
#define _STLP_INTERNAL_STDEXCEPT |
williamr@2 | 21 |
|
williamr@2 | 22 |
#ifndef _STLP_INTERNAL_STDEXCEPT_BASE |
williamr@2 | 23 |
# include <stl/_stdexcept_base.h> |
williamr@2 | 24 |
#endif |
williamr@2 | 25 |
|
williamr@2 | 26 |
#if !defined (_STLP_USE_NATIVE_STDEXCEPT) || defined (_STLP_USE_OWN_NAMESPACE) |
williamr@2 | 27 |
|
williamr@2 | 28 |
# if defined(_STLP_USE_EXCEPTIONS) || \ |
williamr@2 | 29 |
!(defined(_MIPS_SIM) && defined(_ABIO32) && (_MIPS_SIM == _ABIO32)) |
williamr@2 | 30 |
|
williamr@2 | 31 |
_STLP_BEGIN_NAMESPACE |
williamr@2 | 32 |
|
williamr@2 | 33 |
class _STLP_CLASS_DECLSPEC logic_error : public __Named_exception { |
williamr@2 | 34 |
public: |
williamr@2 | 35 |
logic_error(const string& __s) : __Named_exception(__s) {} |
williamr@2 | 36 |
# ifndef _STLP_USE_NO_IOSTREAMS |
williamr@2 | 37 |
~logic_error() _STLP_NOTHROW_INHERENTLY; |
williamr@2 | 38 |
# endif |
williamr@2 | 39 |
}; |
williamr@2 | 40 |
|
williamr@2 | 41 |
class _STLP_CLASS_DECLSPEC runtime_error : public __Named_exception { |
williamr@2 | 42 |
public: |
williamr@2 | 43 |
runtime_error(const string& __s) : __Named_exception(__s) {} |
williamr@2 | 44 |
# ifndef _STLP_USE_NO_IOSTREAMS |
williamr@2 | 45 |
~runtime_error() _STLP_NOTHROW_INHERENTLY; |
williamr@2 | 46 |
# endif |
williamr@2 | 47 |
}; |
williamr@2 | 48 |
|
williamr@2 | 49 |
class _STLP_CLASS_DECLSPEC domain_error : public logic_error { |
williamr@2 | 50 |
public: |
williamr@2 | 51 |
domain_error(const string& __arg) : logic_error(__arg) {} |
williamr@2 | 52 |
# ifndef _STLP_USE_NO_IOSTREAMS |
williamr@2 | 53 |
~domain_error() _STLP_NOTHROW_INHERENTLY; |
williamr@2 | 54 |
# endif |
williamr@2 | 55 |
}; |
williamr@2 | 56 |
|
williamr@2 | 57 |
class _STLP_CLASS_DECLSPEC invalid_argument : public logic_error { |
williamr@2 | 58 |
public: |
williamr@2 | 59 |
invalid_argument(const string& __arg) : logic_error(__arg) {} |
williamr@2 | 60 |
# ifndef _STLP_USE_NO_IOSTREAMS |
williamr@2 | 61 |
~invalid_argument() _STLP_NOTHROW_INHERENTLY; |
williamr@2 | 62 |
# endif |
williamr@2 | 63 |
}; |
williamr@2 | 64 |
|
williamr@2 | 65 |
class _STLP_CLASS_DECLSPEC length_error : public logic_error { |
williamr@2 | 66 |
public: |
williamr@2 | 67 |
length_error(const string& __arg) : logic_error(__arg) {} |
williamr@2 | 68 |
# ifndef _STLP_USE_NO_IOSTREAMS |
williamr@2 | 69 |
~length_error() _STLP_NOTHROW_INHERENTLY; |
williamr@2 | 70 |
# endif |
williamr@2 | 71 |
}; |
williamr@2 | 72 |
|
williamr@2 | 73 |
class _STLP_CLASS_DECLSPEC out_of_range : public logic_error { |
williamr@2 | 74 |
public: |
williamr@2 | 75 |
out_of_range(const string& __arg) : logic_error(__arg) {} |
williamr@2 | 76 |
# ifndef _STLP_USE_NO_IOSTREAMS |
williamr@2 | 77 |
~out_of_range() _STLP_NOTHROW_INHERENTLY; |
williamr@2 | 78 |
# endif |
williamr@2 | 79 |
}; |
williamr@2 | 80 |
|
williamr@2 | 81 |
class _STLP_CLASS_DECLSPEC range_error : public runtime_error { |
williamr@2 | 82 |
public: |
williamr@2 | 83 |
range_error(const string& __arg) : runtime_error(__arg) {} |
williamr@2 | 84 |
# ifndef _STLP_USE_NO_IOSTREAMS |
williamr@2 | 85 |
~range_error() _STLP_NOTHROW_INHERENTLY; |
williamr@2 | 86 |
# endif |
williamr@2 | 87 |
}; |
williamr@2 | 88 |
|
williamr@2 | 89 |
class _STLP_CLASS_DECLSPEC overflow_error : public runtime_error { |
williamr@2 | 90 |
public: |
williamr@2 | 91 |
overflow_error(const string& __arg) : runtime_error(__arg) {} |
williamr@2 | 92 |
# ifndef _STLP_USE_NO_IOSTREAMS |
williamr@2 | 93 |
~overflow_error() _STLP_NOTHROW_INHERENTLY; |
williamr@2 | 94 |
# endif |
williamr@2 | 95 |
}; |
williamr@2 | 96 |
|
williamr@2 | 97 |
class _STLP_CLASS_DECLSPEC underflow_error : public runtime_error { |
williamr@2 | 98 |
public: |
williamr@2 | 99 |
underflow_error(const string& __arg) : runtime_error(__arg) {} |
williamr@2 | 100 |
# ifndef _STLP_USE_NO_IOSTREAMS |
williamr@2 | 101 |
~underflow_error() _STLP_NOTHROW_INHERENTLY; |
williamr@2 | 102 |
# endif |
williamr@2 | 103 |
}; |
williamr@2 | 104 |
|
williamr@2 | 105 |
_STLP_END_NAMESPACE |
williamr@2 | 106 |
|
williamr@2 | 107 |
# endif |
williamr@2 | 108 |
#endif |
williamr@2 | 109 |
|
williamr@2 | 110 |
#endif /* _STLP_INTERNAL_STDEXCEPT */ |