HP LoadRunner Protocol SDK Test Run API Reference  12.02
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ProtocolException.h
Go to the documentation of this file.
1 #ifndef LR_PROTOCOL_SDK_EXCEPTION_H
4 #define LR_PROTOCOL_SDK_EXCEPTION_H
5 
6 #include "ProtocolSdkDefs.h"
7 #include <stdarg.h>
8 
10 #define ABORT_NO_MATTER_WHAT true
11 #define ABORT_BY_CONTINUE_ON_ERROR false
13 
20 class PROTOCOL_EXTENSION_DECLSPEC CProtocolException
21 {
22 public:
23 
46  int mErrorCode,
47  va_list mVaList,
48  bool mAbortNoMatterWhat
49  );
50 
53  const CProtocolException& other);
54 
56  virtual ~CProtocolException();
57 
59  CProtocolException& operator=(const CProtocolException& other);
60 
61 
63  int GetErrorCode(void);
64 
66  const char* GetErrorMessage(void);
67 
71  bool AbortNoMatterWhat(void);
72 
73 private:
74 
75  int m_errorCode;
76  char* m_message;
77  bool m_abortNoMatterWhat;
78 };
79 
81 PROTOCOL_EXTENSION_DECLSPEC CProtocolException
83  bool mAbortNoMatterWhat,
84  int mErrorCode,
85  ...
86  );
87 
88 
89 #endif
Class CProtocolException represents an exception condition.
Definition: ProtocolException.h:20
This file contains general types.
PROTOCOL_EXTENSION_DECLSPEC CProtocolException ExceptionObject(bool mAbortNoMatterWhat, int mErrorCode,...)
Returns a CProtocolException object with the specified error data.


Send documentation feedback to HP.


© 1995-2015 Hewlett-Packard Development Company, L.P.