/usr/include/x86_64-linux-gnu/zypp/PluginScriptException.h is in libzypp-dev 15.3.0-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 | /*---------------------------------------------------------------------\
| ____ _ __ __ ___ |
| |__ / \ / / . \ . \ |
| / / \ V /| _/ _/ |
| / /__ | | | | | | |
| /_____||_| |_| |_| |
| |
\---------------------------------------------------------------------*/
/** \file zypp/PluginScriptException.h
*
*/
#ifndef ZYPP_PLUGINSCRIPTEXCEPTION_H
#define ZYPP_PLUGINSCRIPTEXCEPTION_H
#include <iosfwd>
#include "zypp/base/Exception.h"
#include "zypp/Pathname.h"
///////////////////////////////////////////////////////////////////
namespace zypp
{ /////////////////////////////////////////////////////////////////
/** Base class for \ref PluginScript \ref Exception. */
class PluginScriptException : public Exception
{
public:
PluginScriptException();
PluginScriptException( const std::string & msg_r );
PluginScriptException( const std::string & msg_r, const std::string & hist_r );
virtual ~PluginScriptException() throw();
};
/** Convenience macro to declare more specific PluginScriptExceptions. */
#define declException( EXCP, BASE ) \
class EXCP : public BASE { \
public: \
EXCP() : BASE( #EXCP ) {} \
EXCP( const std::string & msg_r ) : BASE( msg_r ) {} \
EXCP( const std::string & msg_r, const std::string & hist_r ) : BASE( msg_r, hist_r ) {} \
virtual ~EXCP() throw() {} \
}
/** Script connection not open. */
declException( PluginScriptNotConnected, PluginScriptException );
/** Script died unexpectedly. */
declException( PluginScriptDiedUnexpectedly, PluginScriptException );
/** Communication timeout. */
declException( PluginScriptTimeout, PluginScriptException );
/** Timeout while sending data. */
declException( PluginScriptSendTimeout, PluginScriptTimeout );
/** Timeout while receiving data. */
declException( PluginScriptReceiveTimeout, PluginScriptTimeout );
#undef declException
/////////////////////////////////////////////////////////////////
} // namespace zypp
///////////////////////////////////////////////////////////////////
#endif // ZYPP_PLUGINSCRIPTEXCEPTION_H
|