This example illustrates the fundamental attribution error. It is a tendency of a person that explain a certain behavior of someone based on that person's personality. This is to underestimate the effect of external factors like events that happened which lead to that person's behavior at that moment.