Is there any documentation for Unity's exception handling? My try-catch code does not seem to be working. Code (csharp): try { PathTo = PFHelper(transform.position, pos, PathFindIterations); } catch (err) { print(err.message); PathTo = new Array(transform.position); } This code gives me the error: Assets/Scripts-control/EnemyMovement.js(181) error BCE0120: 'System.Exception.message' is unaccessible due to its protection level. (Filename: Assets/Scripts-control/EnemyMovement.js Line: 181)
print(err.message) has to be print(err.Message). You can see a full overview of the exception class on MSDN
.NET naming convention starts names with upper case for both methods and properties. This is different from Java's naming convention.