Changed exception handling ->getCode() to ->code since PHP does not allow getCode() to be overridden. This is a property, not a function because I think its okay to allow the code to change when exceptions trace is being built