0

Possible Duplicate:
Why should I always make my Exceptions [serializable]? (.NET)

Any one know the reason for that?

Community
  • 1
  • 1
user496949
  • 83,087
  • 147
  • 309
  • 426

1 Answers1

3

Because exceptions can be transmitted across process boundaries, or even machine boundaries (e.g. when using remoting). Being serializable helps a lot in those cases.

Frédéric Hamidi
  • 258,201
  • 41
  • 486
  • 479