Error catching -- supported?

Is there any documentation for Unity’s exception handling? My try-catch code does not seem to be working.

	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.__M__essage). You can see a full overview of the exception class on MSDN

Thanks.

Is it just me, or is that nonstandard? Usually members are lowercase…

.NET naming convention starts names with upper case for both methods and properties. This is different from Java’s naming convention.