DriverAPI C++ I/F  6.0
PtlDrvException.h
1 
2 // PtlDrvException.h
3 // Copyright (C) 2008-2012 Antenna House,Inc.
4 // All rights reserved.
6 
7 #pragma once
8 
9 #include "PtlDrvPlatformDefs.h"
10 #include "PtlDrvString.h"
11 #include "PtlDrvErrorCode.h"
12 
13 
14 namespace PdfDrv {
15 
16 #pragma pack(push,8)
17 
23 class PDFDRV_API PtlDrvException
24 {
25 public:
26  PtlDrvException(int errorCode);
27  PtlDrvException(int errorCode, PtlDrvString errorMsg);
28  PtlDrvException(const PtlDrvException& obj);
29  virtual ‾PtlDrvException();
30  PtlDrvException& operator=(const PtlDrvException& obj);
31 
32 protected:
33  int m_ErrorCode;
34  PtlDrvString m_ErrorMsg;
35  PtlDrvString m_ErrorMsgJP;
36 
37 public:
38  int getErrorCode() const;
39  PtlDrvString getErrorMessage() const ;
40  PtlDrvString getErrorMessageJP() const;
41 
42 };
43 
44 #pragma pack(pop)
45 } // namespace PdfDrv
46