Its a TREXError, not NSError anymore. This is to allow better error handling for the end user.