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