Weak reference fix
Move TREXError to NSError+Additions