If you think that you can't do anything right, that you are no good, or that you are a total failure then probably you fell a victim to the "over generalization" way of thinking.
Over generalization, in simple, is creating a negative generalized view of something while the truth may be that this view was only built based on one situation that you faced.