Epistemology is the area of philosophy that is concerned with knowledge. It is concerned with the sources of knowledge (innate ideas, experience, etc.), the nature of knowing and the limits of knowledge. Epistemology considers that knowledge can be obtained through empiricism and/or rationalism.
There are five major sources of knowledge:
It is important to note that at least four these sources are fallible. Perceptions may be flawed, as one may interperet the senses incorrectly and arrive at the wrong conclusion (consider optical illusions as an example). Introspection may be flawed by mistaken feelings or emotions. Memories can be confused, faded or forgotten. Testimony can be false, or come from unreliable sources. (Some even argue that Testimony is a source of belief or supposition, not of knowledge.
Reason, too, can be fallible, when human error is considered. However, if all reason is conducted properly, then, in theory, all a priori knowledge should be true. Some epistemologists, however, argue that reason is not a true source of knowledge, but that these things are learned from experience (empiricism).