added: exception for layer's errors