Added methods to get errors for Node and NodeLayer