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