473,414 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Runtime_error class with LINUX

I have a c++ application running on Linux platform. As part of exception handling, I wanted to derive my user defined exception class from standard runtime_error class.

Are there any known issues/problems between linux OS and runtime_error class? This might sound a little weird but I have seen people avoiding runtime_error class on linux:

#ifdef HPUX
class myException : public std::runtime_error
#endif
#ifdef LINUX
class myExcpetion
#endif
{ // class definition starts here


Any thoughts would be highly appreciated....
Thanks.
Sep 23 '11 #1
1 2523
Banfa
9,065 Expert Mod 8TB
I am not aware of any issues with deriving from std::runtime_error and have been doing so (on Linux and Windows) for the last 2 years.
Sep 23 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Daqian Yang | last post by:
hello all GCC gives me this error: g++ -c -o x-main_a2.o x-main_a2.cpp g++ -Wall -pedantic -c xfile_a2.cpp g++ -Wall -pedantic x-main_a2.o xfile_a2.o -o x Undefined ...
3
by: Thomas Casanova | last post by:
Hi, I am compiling a MSVC++ project on linux gcc 3.3.4. gcc is whimsical about templates. It does understand the declaration of the template type PointerList. It scream the error :...
8
by: DaKoadMunky | last post by:
Say I have the following... class Foo { public: Foo() : bar(0) {} void SetBar(int);
11
by: Dave | last post by:
try { ... } catch (exception e) { cout << e.what() << endl; } In the code above, e is caught by value rather than polymorphically (assume
4
by: Dmitri Sologoubenko | last post by:
Hi, guys! I need a C++ class (Linux/POSIX/GNU C++), which can be started and stopped, and calls a virtual callback instance method (e.g. "expired()") when a given time has elapsed. High...
8
by: Nick Keighley | last post by:
Hi, Perhaps I was little ambitious with this template class. When I define exception classes for packages I seemed to write code similar to this each time:- class DecompressionError :...
3
by: TamusJRoyce | last post by:
Hello. This is my first thread here. My problem has probably been came across by a lot of people, but tutorials and things I've seen don't address it (usually too basic). My problem is that I...
0
by: rkmr.em | last post by:
the memory usage of a python app keeps growing in a x86 64 linux continuously, whereas in 32 bit linux this is not the case. Python version in both 32 bit and 64 bit linux - 2.6.24.4-64.fc8 Python...
4
by: amphetaman | last post by:
If I derive my own Exception class from std::runtime_error, do I have to write the destructor even if its body is empty? #include <stdexcept> class Exception : public std::runtime_error {...
2
by: Nick Keighley | last post by:
Hi, I'm trying to derive my own exceptions from runtime_error. I want the what() to produce something like runtime error: my error subtype A So I tried: class MyError: public...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.