The defining characteristic of pessimists is that they tend to believe bad events will last a long time, will undermine everything they do, and are their own fault.
Optimists tend to interpret their troubles as transient, controllable, and specific to one situation. Pessimists, on the other hand, believe that their troubles last forever, undermine everything they do, and are uncontrollable.