diff options
| author | Patrick Scott <phanna@android.com> | 2009-10-16 15:11:59 -0400 |
|---|---|---|
| committer | Patrick Scott <phanna@android.com> | 2009-12-02 14:33:28 -0500 |
| commit | a47ab5294213cca2741f453b450b02666e08cac8 (patch) | |
| tree | 428576772386a65df40bbc18d1f7b41b06a01946 /WebKit/android/stlport/stl/_stdexcept.h | |
| parent | edac9050e2c3239d294f9039c54a31058ab0a783 (diff) | |
| download | external_webkit-a47ab5294213cca2741f453b450b02666e08cac8.zip external_webkit-a47ab5294213cca2741f453b450b02666e08cac8.tar.gz external_webkit-a47ab5294213cca2741f453b450b02666e08cac8.tar.bz2 | |
Use STLPort instead of our stripped version.
This fixes the simulator build and allows us to get closer to sharing code with
chromium.
STLPort was copied with minor edits from the Android port of gears.
Diffstat (limited to 'WebKit/android/stlport/stl/_stdexcept.h')
| -rw-r--r-- | WebKit/android/stlport/stl/_stdexcept.h | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/WebKit/android/stlport/stl/_stdexcept.h b/WebKit/android/stlport/stl/_stdexcept.h new file mode 100644 index 0000000..8c784bb --- /dev/null +++ b/WebKit/android/stlport/stl/_stdexcept.h @@ -0,0 +1,110 @@ +/* + * Copyright (c) 1996,1997 + * Silicon Graphics Computer Systems, Inc. + * + * Copyright (c) 1999 + * Boris Fomitchev + * + * This material is provided "as is", with absolutely no warranty expressed + * or implied. Any use is at your own risk. + * + * Permission to use or copy this software for any purpose is hereby granted + * without fee, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is granted, + * provided the above notices are retained, and a notice that the code was + * modified is included with the above copyright notice. + * + */ + +#ifndef _STLP_INTERNAL_STDEXCEPT +#define _STLP_INTERNAL_STDEXCEPT + +#ifndef _STLP_INTERNAL_STDEXCEPT_BASE +# include <stl/_stdexcept_base.h> +#endif + +#if !defined (_STLP_USE_NATIVE_STDEXCEPT) || defined (_STLP_USE_OWN_NAMESPACE) + +# if defined(_STLP_USE_EXCEPTIONS) || \ + !(defined(_MIPS_SIM) && defined(_ABIO32) && (_MIPS_SIM == _ABIO32)) + +_STLP_BEGIN_NAMESPACE + +class _STLP_CLASS_DECLSPEC logic_error : public __Named_exception { +public: + logic_error(const string& __s) : __Named_exception(__s) {} +# ifndef _STLP_USE_NO_IOSTREAMS + ~logic_error() _STLP_NOTHROW_INHERENTLY; +# endif +}; + +class _STLP_CLASS_DECLSPEC runtime_error : public __Named_exception { +public: + runtime_error(const string& __s) : __Named_exception(__s) {} +# ifndef _STLP_USE_NO_IOSTREAMS + ~runtime_error() _STLP_NOTHROW_INHERENTLY; +# endif +}; + +class _STLP_CLASS_DECLSPEC domain_error : public logic_error { +public: + domain_error(const string& __arg) : logic_error(__arg) {} +# ifndef _STLP_USE_NO_IOSTREAMS + ~domain_error() _STLP_NOTHROW_INHERENTLY; +# endif +}; + +class _STLP_CLASS_DECLSPEC invalid_argument : public logic_error { +public: + invalid_argument(const string& __arg) : logic_error(__arg) {} +# ifndef _STLP_USE_NO_IOSTREAMS + ~invalid_argument() _STLP_NOTHROW_INHERENTLY; +# endif +}; + +class _STLP_CLASS_DECLSPEC length_error : public logic_error { +public: + length_error(const string& __arg) : logic_error(__arg) {} +# ifndef _STLP_USE_NO_IOSTREAMS + ~length_error() _STLP_NOTHROW_INHERENTLY; +# endif +}; + +class _STLP_CLASS_DECLSPEC out_of_range : public logic_error { +public: + out_of_range(const string& __arg) : logic_error(__arg) {} +# ifndef _STLP_USE_NO_IOSTREAMS + ~out_of_range() _STLP_NOTHROW_INHERENTLY; +# endif +}; + +class _STLP_CLASS_DECLSPEC range_error : public runtime_error { +public: + range_error(const string& __arg) : runtime_error(__arg) {} +# ifndef _STLP_USE_NO_IOSTREAMS + ~range_error() _STLP_NOTHROW_INHERENTLY; +# endif +}; + +class _STLP_CLASS_DECLSPEC overflow_error : public runtime_error { +public: + overflow_error(const string& __arg) : runtime_error(__arg) {} +# ifndef _STLP_USE_NO_IOSTREAMS + ~overflow_error() _STLP_NOTHROW_INHERENTLY; +# endif +}; + +class _STLP_CLASS_DECLSPEC underflow_error : public runtime_error { +public: + underflow_error(const string& __arg) : runtime_error(__arg) {} +# ifndef _STLP_USE_NO_IOSTREAMS + ~underflow_error() _STLP_NOTHROW_INHERENTLY; +# endif +}; + +_STLP_END_NAMESPACE + +# endif +#endif + +#endif /* _STLP_INTERNAL_STDEXCEPT */ |
