Aspose.Tasks for C++
TasksReadingException.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="TasksReadingException.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2025 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/exceptions.h>
9 
10 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
11 #include "aspose.tasks.cpp/Exceptions/TasksLoggedException.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 namespace Connectivity
18 {
19 class DbReader;
20 class MpdReader;
21 class MspDbReader;
22 class PmProjectMapper;
23 class PrimaveraDbReader;
24 } // namespace Connectivity
25 namespace IO
26 {
27 namespace MSProject
28 {
29 class MPP12Reader;
30 class MPP14Reader;
31 class MPPProjectPropsReader;
32 } // namespace MSProject
33 namespace Xer
34 {
35 class XerProjectReader;
36 } // namespace Xer
37 namespace Xml
38 {
39 class XmlReader;
40 } // namespace Xml
41 } // namespace IO
42 class PrimaveraXerReader;
43 class PrimaveraXmlReader;
44 class ProgressLogBuilder;
45 class ProjectFormatDetector;
46 class ReaderFactory;
47 } // namespace Tasks
48 } // namespace Aspose
49 namespace System
50 {
51 namespace Runtime
52 {
53 namespace Serialization
54 {
55 class SerializationInfo;
56 class StreamingContext;
57 } // namespace Serialization
58 } // namespace Runtime
59 class String;
60 } // namespace System
61 
62 namespace Aspose {
63 
64 namespace Tasks {
65 
66 class Details_TasksReadingException;
67 using TasksReadingException = System::ExceptionWrapper<Details_TasksReadingException>;
68 
69 /// <summary>
70 /// Represents the standard internal reading exception type.
71 /// </summary>
72 class ASPOSE_TASKS_SHARED_CLASS Details_TasksReadingException : public Details_TasksLoggedException
73 {
74  typedef Details_TasksReadingException ThisType;
75  typedef Details_TasksLoggedException BaseType;
76 
77  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
78  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
79 
80  friend class Aspose::Tasks::Connectivity::DbReader;
81  friend class Aspose::Tasks::Connectivity::PmProjectMapper;
82  friend class Aspose::Tasks::IO::MSProject::MPP12Reader;
83  friend class PrimaveraXerReader;
84  friend class Aspose::Tasks::Connectivity::PrimaveraDbReader;
85  friend class Aspose::Tasks::IO::Xer::XerProjectReader;
86  friend class Aspose::Tasks::Connectivity::MspDbReader;
87  friend class ProjectFormatDetector;
88  friend class Aspose::Tasks::IO::MSProject::MPPProjectPropsReader;
89  friend class PrimaveraXmlReader;
90  friend class Aspose::Tasks::Connectivity::MpdReader;
91  friend class Aspose::Tasks::IO::Xml::XmlReader;
92  friend class Aspose::Tasks::IO::MSProject::MPP14Reader;
93  friend class ReaderFactory;
94  friend class System::ExceptionWrapperHelper;
95  template<typename T> friend class System::ExceptionWrapper;
96 
97 protected:
98 
99  [[noreturn]] ASPOSE_TASKS_SHARED_API void DoThrow(const System::ExceptionPtr& self) const override;
100 
101  /// <summary>
102  /// Initializes a new instance of the <see cref="TasksReadingException"></see> class.
103  /// </summary>
104  ASPOSE_TASKS_SHARED_API Details_TasksReadingException();
105 
106  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_TasksReadingException, CODEPORTING_ARGS());
107 
108  /// <summary>
109  /// Initializes a new instance of the <see cref="TasksReadingException"></see> class.
110  /// </summary>
111  /// <param name="msg">The message of the exception.</param>
112  ASPOSE_TASKS_SHARED_API Details_TasksReadingException(const System::String& msg);
113 
114  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_TasksReadingException, CODEPORTING_ARGS(const System::String& msg));
115 
116  /// <summary>
117  /// Initializes a new instance of the <see cref="TasksReadingException"></see> class.
118  /// </summary>
119  /// <param name="msg">The exception's message.</param>
120  /// <param name="innerException">The exception's inner exception.</param>
121  ASPOSE_TASKS_SHARED_API Details_TasksReadingException(const System::String& msg, System::Exception& innerException);
122 
123  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_TasksReadingException, CODEPORTING_ARGS(const System::String& msg, System::Exception& innerException));
124 
125  /// <summary>
126  /// Initializes a new instance of the <see cref="TasksReadingException"></see> class.
127  /// </summary>
128  /// <param name="msg">The exception's message.</param>
129  /// <param name="innerException">The exception's inner exception.</param>
130  /// <param name="log">Project's reading log.</param>
131  ASPOSE_TASKS_SHARED_API Details_TasksReadingException(const System::String& msg, System::Exception& innerException, const System::SharedPtr<ProgressLogBuilder>& log);
132 
133  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_TasksReadingException, CODEPORTING_ARGS(const System::String& msg, System::Exception& innerException, const System::SharedPtr<ProgressLogBuilder>& log));
134 
135  /// <summary>
136  /// Initializes a new instance of the <see cref="TasksReadingException"></see> class.
137  /// </summary>
138  /// <param name="info">The serialization info.</param>
139  /// <param name="context">The serialization context.</param>
140  ASPOSE_TASKS_SHARED_API Details_TasksReadingException(const System::SharedPtr<System::Runtime::Serialization::SerializationInfo>& info, System::Runtime::Serialization::StreamingContext context);
141 
142  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_TasksReadingException, CODEPORTING_ARGS(const System::SharedPtr<System::Runtime::Serialization::SerializationInfo>& info, System::Runtime::Serialization::StreamingContext context));
143 
144 };
145 
146 } // namespace Tasks
147 } // namespace Aspose
148 
149 
Aspose.
Definition: Asn.h:13