Building services

What is the primary function of a circuit breaker selected for overcurrent protection?