File: stdexcept.sip

package info (click to toggle)
libserial 1.0.0%2Bgit20250903-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,220 kB
  • sloc: cpp: 6,140; makefile: 278; python: 163; sh: 29
file content (36 lines) | stat: -rw-r--r-- 712 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace std
{
%TypeHeaderCode
#include <stdexcept>
%End
    class logic_error : std::exception
    {
    public:
        explicit logic_error(const std::string& __arg);

        virtual ~logic_error() throw();

        virtual const char* what() const throw();
    };

    class runtime_error : std::exception
    {
    public:
        explicit runtime_error(const std::string& __arg);

        virtual ~runtime_error() throw();

        virtual const char* what() const throw();
    };

    class invalid_argument : std::logic_error
    {
    public:
        explicit invalid_argument(const std::string& __arg);

        virtual ~invalid_argument() throw();
    %MethodCode
        return;
    %End
    };
};