How to learn from your mistakes and errors when learning Chinese

Making mistakes is a natural part of learning Chinese, but how can you make sure you learn as much as possible from the mistakes you make? The answer can be anything from “ignore it” to “stop everything you’re doing and get to the bottom of it”, and it all depends on what kind of mistake you’ve made!