Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing examples for Working with Resources, Working with Resource Assignments, Working with Formulas, Working with Currencies and Miscellaneous sections of Aspose.Tasks docs.
- Loading branch information
1 parent
04cdf6f
commit 8719379
Showing
643 changed files
with
4,923 additions
and
22,987 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ generated/ | |
bin/ | ||
* Out* | ||
*_out_* | ||
*_out* | ||
* out* | ||
*.ldb | ||
Thumbs.db | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace Aspose.Tasks.Examples.CSharp.Miscellaneous | ||
{ | ||
class HandleExceptions | ||
{ | ||
public static void Run() | ||
{ | ||
// ExStart:HandleExceptions | ||
Project project; | ||
try | ||
{ | ||
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName); | ||
project = new Project(dataDir + "project.mpp"); | ||
} | ||
catch (TasksReadingException ex) | ||
{ | ||
Console.WriteLine("Message:"); | ||
Console.WriteLine(ex.Message); | ||
Console.WriteLine("Log:"); | ||
Console.WriteLine(ex.LogText); | ||
if (ex.InnerException != null) | ||
{ | ||
Console.WriteLine("Inner exception message:"); | ||
Console.WriteLine(ex.InnerException.Message); | ||
} | ||
} | ||
catch (Exception ex) | ||
{ | ||
Console.WriteLine(ex.Message); | ||
} | ||
// ExEnd:HandleExceptions | ||
} | ||
} | ||
} |
Oops, something went wrong.