std::exception(3) Library Functions Manual std::exception(3)NAME
std::exception -
SYNOPSIS
Inherited by __gnu_cxx::__concurrence_broadcast_error, __gnu_cxx::__concurrence_lock_error, __gnu_cxx::__concurrence_unlock_error,
__gnu_cxx::__concurrence_wait_error, __gnu_cxx::forced_error, __gnu_cxx::recursive_init_error, std::bad_alloc, std::bad_cast,
std::bad_exception, std::bad_function_call, std::bad_typeid, std::bad_weak_ptr, std::ios_base::failure, std::logic_error, and
std::runtime_error.
Public Member Functions
virtual const char * what () const noexcept
Detailed Description
Base class for all library exceptions.
This is the base class for all exceptions thrown by the standard library, and by certain language expressions. You are free to derive your
own exception classes, or use a different hierarchy, or to throw non-class data (e.g., fundamental types).
Definition at line 60 of file exception.
Member Function Documentation
virtual const char* std::exception::what () const [virtual], [noexcept]
Returns a C-style character string describing the general cause of the current error.
Reimplemented in std::bad_function_call, std::ios_base::failure, std::bad_typeid, std::bad_cast, std::runtime_error, std::future_error,
std::bad_exception, std::logic_error, std::bad_weak_ptr, and std::bad_alloc.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Jun 10 2014 std::exception(3)
Hi all,
Right now I'm using this but it seems to be a hack:
if (prefix(arg, "mark=")) {
for (markid = strtok(args,"="); markid; markid=strtok((char *)NULL, "=")) {
basically the user passes "mark=ny" to the command. I want to be able to extract "ny" from that... (7 Replies)
Our development machines have libstdc++.so.5 and libstdc++.so.6.
When we build our native code, it uses libstdc++.so.6. Is there anyway I can force it to use libstdc++.so.5 instead ?
$ ldd try
/usr/lib/libcwait.so (0x00655000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6... (5 Replies)
Dear All,
I am new to Unix and i need a small Help from you Guys.....
The current structure of my system is as follows:
/Abc/xyz/cpd/std/re/doc
Each cpd directory has n number of std's. Each std has n number of re's.
My requirement is to write a UNIX script that would search whether doc... (8 Replies)
hello everybody i am new on the AIX environment and i have faced an issue while running pstill it can't find ibstdc++.a (libstdc++.so.5) although i have the latest GCC and libstdc 4.0.0 i guess.
So to resolve the problem i have got an old versions that i want to install on AIX:
... (5 Replies)
The below code throws the error, since the size of x = 19 is not passed to the cstrCopy function.
using namespace std;
static void cstrCopy(char *x, const char*y);
int main ()
{
char x;
const string y = "UNIX FORUM";
cstrCopy(x,y.c_str());
return 0;
}
void cstrCopy(char *x,... (3 Replies)
Hi All,
I'm trying to read from two files at the same time, but the second READ is failing, giving no value.
Obvious STDIN is being used by the first "while read", so how can I retrieve a value from a second file within the loop ??
IFS=" ,"
cat $DATAFILE | while read curdate currentcksum... (3 Replies)
All,
I am getting this when i try to ran a program in HP unix.
Things i came across
1. i have a system HP-UNIX where this same exe is working.
2. We have set a new HP_UNIX with the same configration and copied the exe to the new system we are getting this error.
3. Only... (3 Replies)
Hello,
Compilation of the line "cout = outFile" throws error
"Error: std::ios_base::operator=(const std::ios_base&) is not accessible from std::ios ::operator=(const std::ios &)."
outFile is declared as "static ofstream".
Thanks,
Shafi (3 Replies)
Hello,
I compiled the object file of a binary and i could see the symbol , "void*std::__node_alloc<1,0>::_M_allocate(unsigned)", this is actually present as "void*std::__node_alloc<true,0>::_M_allocate(unsigned)" in the libstlport4.so.1 . This has been verified with "nm -C " command
Please... (4 Replies)
See the following code:
#include<iostream>
using namespace std;
class Uncopyable
{
protected:
Uncopyable(){cout<<"hehe\n";}
~Uncopyable(){}
private:
Uncopyable(const Uncopyable &rhs){cout<<"oooops\n";};
Uncopyable& operator=(const Uncopyable &rhs);
};
class Dog :... (5 Replies)
my this program is working when the argument is not provided why its not working when i m providing argument?
code :
#include<iostream>
#include <dirent.h>
using namespace std;
int main(int agrc ,char *val)
{
DIR*dir;
struct dirent * abcd;
if(!val)
{... (3 Replies)
I have a program that scans and updates its results to std out every second. I would like to capture its output for further processing, but there is a catch. I would like to capture a snapshot after about 15 seconds as the results become more accurate and close the program.
Obviously I can simply... (4 Replies)