Make those methods visible to subclass for customizing ErrorAttributes

Comment From: wilkinsona

Thanks for the proposal. This is something that we'd like to improve but it's not quite as simple as making a few methods protected rather than private. Please see see https://github.com/spring-projects/spring-boot/issues/20412 for details.