I am glad you're in California; I can be specific:
When you go thru Foreclosure, you will have 5 kinds of Debt/Problem:
1.) The Mortgage; will be forgiven; and with State Laws (re-affirmed since passed) you will not have to worry about Deficiency Judgement for the difference.
2.) Second Lien; such as a Second or a HELOC, (reaffirmed in July) you don't have to worry about any 2nd either.
3.) Property Taxes; could still be a problem if you were behind when the Foreclosure took place. They will stay with you; you should contact the Couty Assessor and make a deal. This will not go away.
4.) HOA Lien; if you were living in an HOA and were behind on your HOA dues, you will have to negotiate with them; they might be reasonable. Again, this lien does not disappear with the Foreclosure.
5.) Income Taxes: If you profited from the foregiveness of the debt; as of 2009, the Federal Gov. (Obama) passed the "Forgiveness of Debt" law, which means that you will not owe the IRS for that paper income.
I hope this answers your questions.
Good luck and may God bless