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 9253837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:19:09+00:00 2026-06-18T11:19:09+00:00

What does the term module refer to in the following sentence? Don’t allow exceptions

  • 0

What does the term module refer to in the following sentence?

Don’t allow exceptions to propagate across module boundaries.

This is rule 62 in C++ Coding Standards by Herb Sutter and Andrei Alexandrescu.


I have now read the book, so I would like to quote the section summary, which I think adds some clarity:

Don’t throw stones into your neighbor’s garden: There is no ubiquitous binary standard for C++ exception handling. Don’t allow exceptions to propagate between two pieces of code unless you control the compiler and compiler options used to build both sides; otherwise, the modules might not support compatible implementations for exception propagation. Typically, this boils down to: Don’t let exceptions propagate across module/subsystem boundaries.

  • 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-06-18T11:19:10+00:00Added an answer on June 18, 2026 at 11:19 am

    That’s a good question. The C++ standard doesn’t use the word
    module (I don’t think, at least), and the usual everyday meaning
    is something like a translation unit. Except that that can’t be
    what Herb and Andrei mean, since the real purpose of using
    exceptions is to propagate up out of the local body of
    code—otherwise, you’d use return codes.

    I can only guess, but they probably mean something that might
    reasonably be implemented in a different DLL. Propagating
    exceptions accross DLL boundaries might be a problem, if the
    DLL’s have been compiled with a different compiler, or use
    a different language. Otherwise…

    It’s usually considered best practice to have a single try/catch
    block in main (or in some other high level function, in each
    thread), and catch all exceptions there, regardless of where
    they come from. And there are no problems with modern compilers when you do this.

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

Sidebar

Related Questions

Does the term multibyte refer to a charset whose characters can - but don't
I often come across the term 'named type' in C#. What does it mean?
I heard this term recently. What are subscription applications(for a mobile platform). Does this
Well, I encountered this new term in programming. What is it? How does it
How does a copy constructor work in c++ Error 1 error C2064: term does
Very simple question. What does the term 'seeding' mean in general? I'll put the
I'm embarrassed to ask such a simple question. My term does not start for
What does it actually mean by the term Entity in LINQ? What is the
The term test case used a lot, but what does it actually mean? Test
What exactly is meant by the term rich user interface? Does it mean the

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.