Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 276095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:51:59+00:00 2026-05-12T00:51:59+00:00

Referring to What is the correct way to make a custom .NET Exception serializable?

  • 0

Referring to What is the correct way to make a custom .NET Exception serializable?
and Are all .NET Exceptions serializable? …

Why should my exceptions be serializable?
Someone said "it can be considered a bug" if a custom exception defined by a third party library is not serializable. Why?

Why are exceptions different than other classes in this regard?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T00:52:00+00:00Added an answer on May 12, 2026 at 12:52 am

    Because your exceptions may need to be marshalled between different AppDomains and if they aren’t (properly) serializable you will lose precious debugging information. Unlike other classes, you won’t have control over whether your exception will be marshalled — it will.


    When I mean “you won’t have control” I mean that classes you create generally have a finite space of existence and the existence is well known. If it’s a return value and someone tries to call it in a different AppDomain (or on a different machine) they will get a fault and can just say “Don’t use it that way.” The caller knows they have to convert it into a type that can be serialized (by wrapping the method call). However since exceptions are bubbled up to the very top if not caught they can transcend AppDomain boundaries you didn’t even know you had. Your custom application exception 20 levels deep in a different AppDomain might be the exception reported at Main() and nothing along the way is going to convert it into a serializable exception for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Referring to this post on primefaces forum. Has someone got any idea how can
What is the technically correct way of referring to high ascii or extended ascii
What is the correct terminology when referring to a CSS declaration containing CSS combinators,
Referring to Brian Goetz's article Are all stateful Web applications broken? for IBM developerWorks,
Referring to this question , how can i get the current page size in
First, I don't know what names I should be referring to each of these
Sorry for fuzzy post title, I can't formulate the correct name in English for
when reffering to 2d lists which is the correct way the rows/columns are ordered?
Is there a way to serialize a class in C++? I am not referring
Referring to question Spring Autowiring stopped working on GAE I ask: why doesn't AppEngine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.