Definitelly failure has a way of teaching you that the path taken is not the right path,and with this the error cannot be reapeated,and that is one way to actually learn in business.I also think that experience is the best teacher because experience combines each and every aspect of your professional career. This also includes failure itself!