/usr/include/sipxtapi/os/OsExcept.h is in libsipxtapi-dev 3.3.0~test17-1.
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 | //
// Copyright (C) 2004-2006 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////
#ifndef _OsExcept_h_
#define _OsExcept_h_
// SYSTEM INCLUDES
// APPLICATION INCLUDES
#include "OsDefs.h"
#include "utl/UtlString.h"
// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS
//:Base class for exceptions thrown from the OS abstraction layer
// The abstraction layer exception handling mechanism is based on the
// OsExcept class. This class stores information about the type, cause,
// and location of the exception.
class OsExcept
{
/* //////////////////////////// PUBLIC //////////////////////////////////// */
public:
enum MajorCode
{
MAJOR_NONE, // Unclassified exception
MAJOR_RUNTIME, // Runtime exception
MAJOR_USER // User-defined exception
};
//!enumcode: MAJOR_NONE - Unclassified exception
//!enumcode: MAJOR_RUNTIME - Runtime exception
//!enumcode: MAJOR_USER - User-defined exception
enum MinorCode
{
MINOR_NONE, // Unclassified exception
MINOR_RUNTIME, // Runtime exception
MINOR_USER // User-defined exception
};
//!enumcode: MINOR_NONE - Unclassified exception
//!enumcode: MINOR_RUNTIME - Runtime exception
//!enumcode: MINOR_USER - User-defined exception
/* ============================ CREATORS ================================== */
OsExcept(const int majorCode=MAJOR_NONE, const int minorCode=MINOR_NONE,
const UtlString& rText="", const UtlString& rContext="");
//:Constructor
OsExcept(const OsExcept& rOsExcept);
//:Copy constructor
virtual
~OsExcept();
//:Destructor
/* ============================ MANIPULATORS ============================== */
OsExcept& operator=(const OsExcept& rhs);
//:Assignment operator
virtual void setMajorCode(const int majorCode);
//:Set major exception code
virtual void setMinorCode(const int minorCode);
//:Set minor exception code
virtual void setContext(const UtlString& rContext);
//:Set exception context
virtual void setText(const UtlString& rText);
//:Set exception text
/* ============================ ACCESSORS ================================= */
virtual int getMajorCode(void) const;
//:Get major exception code
virtual int getMinorCode(void) const;
//:Get minor exception code
virtual const UtlString& getContext(void) const;
//:Get exception context
virtual const UtlString& getText(void) const;
//:Get exception text
/* ============================ INQUIRY =================================== */
/* //////////////////////////// PROTECTED ///////////////////////////////// */
protected:
/* //////////////////////////// PRIVATE /////////////////////////////////// */
private:
int mMajorCode; // major exception code
int mMinorCode; // minor exception code
UtlString* mpText; // exception text
UtlString* mpContext; // exception context
void init(void);
//:Initialize the member variables (called by the constructors)
};
/* ============================ INLINE METHODS ============================ */
#endif // _OsExcept_h_
|