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

  • SEARCH
  • Home
  • 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

The answer to What is the correct way to make exceptions serializable? says that
What is the technically correct way of referring to high ascii or extended ascii
How can I get a list of the running applications? I'm referring to the
Referring to TLB and maintenance issues ... My question to people (often) using the
I've heard people referring to this table and was not sure what it was
I'm referring to distinctions such as in this answer : ...bash isn't for writing
I'm using java and referring to the double datatype. To keep it short, I'm
What exactly does the word patch mean when referring to 'submitting a patch'? I've
I would like to provide the raw text referring to an environment variable to
If I have two objects on the heap referring to each other but they

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.