Disease characterized by inflammation or infection of the inner surface of the heart (the endocardium).