1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/tools/stlport/stl/_stdexcept.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,110 @@
1.4 +/*
1.5 + * Copyright (c) 1996,1997
1.6 + * Silicon Graphics Computer Systems, Inc.
1.7 + *
1.8 + * Copyright (c) 1999
1.9 + * Boris Fomitchev
1.10 + *
1.11 + * This material is provided "as is", with absolutely no warranty expressed
1.12 + * or implied. Any use is at your own risk.
1.13 + *
1.14 + * Permission to use or copy this software for any purpose is hereby granted
1.15 + * without fee, provided the above notices are retained on all copies.
1.16 + * Permission to modify the code and to distribute modified code is granted,
1.17 + * provided the above notices are retained, and a notice that the code was
1.18 + * modified is included with the above copyright notice.
1.19 + *
1.20 + */
1.21 +
1.22 +#ifndef _STLP_INTERNAL_STDEXCEPT
1.23 +#define _STLP_INTERNAL_STDEXCEPT
1.24 +
1.25 +#ifndef _STLP_INTERNAL_STDEXCEPT_BASE
1.26 +# include <stl/_stdexcept_base.h>
1.27 +#endif
1.28 +
1.29 +#if !defined (_STLP_USE_NATIVE_STDEXCEPT) || defined (_STLP_USE_OWN_NAMESPACE)
1.30 +
1.31 +# if defined(_STLP_USE_EXCEPTIONS) || \
1.32 + !(defined(_MIPS_SIM) && defined(_ABIO32) && (_MIPS_SIM == _ABIO32))
1.33 +
1.34 +_STLP_BEGIN_NAMESPACE
1.35 +
1.36 +class _STLP_CLASS_DECLSPEC logic_error : public __Named_exception {
1.37 +public:
1.38 + logic_error(const string& __s) : __Named_exception(__s) {}
1.39 +# ifndef _STLP_USE_NO_IOSTREAMS
1.40 + ~logic_error() _STLP_NOTHROW_INHERENTLY;
1.41 +# endif
1.42 +};
1.43 +
1.44 +class _STLP_CLASS_DECLSPEC runtime_error : public __Named_exception {
1.45 +public:
1.46 + runtime_error(const string& __s) : __Named_exception(__s) {}
1.47 +# ifndef _STLP_USE_NO_IOSTREAMS
1.48 + ~runtime_error() _STLP_NOTHROW_INHERENTLY;
1.49 +# endif
1.50 +};
1.51 +
1.52 +class _STLP_CLASS_DECLSPEC domain_error : public logic_error {
1.53 +public:
1.54 + domain_error(const string& __arg) : logic_error(__arg) {}
1.55 +# ifndef _STLP_USE_NO_IOSTREAMS
1.56 + ~domain_error() _STLP_NOTHROW_INHERENTLY;
1.57 +# endif
1.58 +};
1.59 +
1.60 +class _STLP_CLASS_DECLSPEC invalid_argument : public logic_error {
1.61 +public:
1.62 + invalid_argument(const string& __arg) : logic_error(__arg) {}
1.63 +# ifndef _STLP_USE_NO_IOSTREAMS
1.64 + ~invalid_argument() _STLP_NOTHROW_INHERENTLY;
1.65 +# endif
1.66 +};
1.67 +
1.68 +class _STLP_CLASS_DECLSPEC length_error : public logic_error {
1.69 +public:
1.70 + length_error(const string& __arg) : logic_error(__arg) {}
1.71 +# ifndef _STLP_USE_NO_IOSTREAMS
1.72 + ~length_error() _STLP_NOTHROW_INHERENTLY;
1.73 +# endif
1.74 +};
1.75 +
1.76 +class _STLP_CLASS_DECLSPEC out_of_range : public logic_error {
1.77 +public:
1.78 + out_of_range(const string& __arg) : logic_error(__arg) {}
1.79 +# ifndef _STLP_USE_NO_IOSTREAMS
1.80 + ~out_of_range() _STLP_NOTHROW_INHERENTLY;
1.81 +# endif
1.82 +};
1.83 +
1.84 +class _STLP_CLASS_DECLSPEC range_error : public runtime_error {
1.85 +public:
1.86 + range_error(const string& __arg) : runtime_error(__arg) {}
1.87 +# ifndef _STLP_USE_NO_IOSTREAMS
1.88 + ~range_error() _STLP_NOTHROW_INHERENTLY;
1.89 +# endif
1.90 +};
1.91 +
1.92 +class _STLP_CLASS_DECLSPEC overflow_error : public runtime_error {
1.93 +public:
1.94 + overflow_error(const string& __arg) : runtime_error(__arg) {}
1.95 +# ifndef _STLP_USE_NO_IOSTREAMS
1.96 + ~overflow_error() _STLP_NOTHROW_INHERENTLY;
1.97 +# endif
1.98 +};
1.99 +
1.100 +class _STLP_CLASS_DECLSPEC underflow_error : public runtime_error {
1.101 +public:
1.102 + underflow_error(const string& __arg) : runtime_error(__arg) {}
1.103 +# ifndef _STLP_USE_NO_IOSTREAMS
1.104 + ~underflow_error() _STLP_NOTHROW_INHERENTLY;
1.105 +# endif
1.106 +};
1.107 +
1.108 +_STLP_END_NAMESPACE
1.109 +
1.110 +# endif
1.111 +#endif
1.112 +
1.113 +#endif /* _STLP_INTERNAL_STDEXCEPT */