Whining about your own, others', or the world's failings is a main element in what we usually call neurosis.
We can actually put the essence of neurosis in a single word: blaming - or damning.
Neurosis is just a high-class word for whining.