This has mixed language, which makes it a bit harder to understand.

 - is there 1, or multiple?
 - is it error(s) or message(s)

Method name and argument here look like they should both be plural, and they should use the same word for the things they are talking about, rather than both 'error' and 'message'.