/usr/include/gnash/GnashException.h is in gnash-dev 0.8.11~git20160109-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | //
// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
// Free Software Foundation, Inc
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef GNASH_GNASHEXCEPTION_H
#define GNASH_GNASHEXCEPTION_H
#include <stdexcept>
#include <string>
#include "dsodefs.h"
namespace gnash
{
/// Top-level gnash exception
class DSOEXPORT GnashException: public std::runtime_error
{
public:
GnashException(const std::string& s)
:
std::runtime_error(s)
{}
GnashException()
:
std::runtime_error("Generic error")
{}
virtual ~GnashException() throw() {}
};
/// An exception from MediaHandler subsystem
class DSOEXPORT MediaException : public GnashException
{
public:
MediaException(const std::string& s)
:
GnashException(s)
{}
MediaException()
:
GnashException("Media error")
{}
virtual ~MediaException() throw() {}
};
/// An exception from SoundHandler subsystem
class DSOEXPORT SoundException : public GnashException
{
public:
SoundException(const std::string& s)
:
GnashException(s)
{}
SoundException()
:
GnashException("Audio error")
{}
virtual ~SoundException() throw() {}
};
/// An SWF parsing exception
class DSOEXPORT ParserException : public GnashException
{
public:
ParserException(const std::string& s)
:
GnashException(s)
{}
ParserException()
:
GnashException("Parser error")
{}
virtual ~ParserException() throw() {}
};
/// An ActionScript error exception
class ActionException: public GnashException
{
protected:
ActionException(const std::string& s)
:
GnashException(s)
{}
ActionException()
:
GnashException("ActionScript error")
{}
public:
virtual ~ActionException() throw() {}
};
/// An ActionScript limit exception
//
/// When this exception is thrown, current execution should
/// be aborted, stacks and registers cleaning included.
///
class ActionLimitException: public ActionException
{
public:
ActionLimitException(const std::string& s)
:
ActionException(s)
{}
ActionLimitException()
:
ActionException("ActionScript limit hit")
{}
virtual ~ActionLimitException() throw() {}
};
/// An ActionScript type error
//
/// This exception can be thrown by as_value::to_primitive when an object
/// can't be converted to a primitive value or by native function when
/// they are called as method of an unexpected type
///
class ActionTypeError: public ActionException
{
public:
ActionTypeError(const std::string& s)
:
ActionException(s)
{}
ActionTypeError()
:
ActionException("ActionTypeError")
{}
virtual ~ActionTypeError() throw() {}
};
/// An action parsing error, thrown on illegal
/// action buffer access.
class ActionParserException: public ActionException
{
public:
ActionParserException(const std::string& s)
:
ActionException(s)
{}
ActionParserException()
:
ActionException("Action parser exception")
{}
virtual ~ActionParserException() throw() {}
};
} // namespace gnash
#endif // def GNASH_GNASHEXCEPTION_H
// Local Variables:
// mode: C++
// c-basic-offset: 8
// tab-width: 8
// indent-tabs-mode: t
// End:
|