Topic: exception class Qs
Author: elemings@unix1.utm.edu (Eric Lemings)
Date: 1995/04/23 Raw View
Richard M. Emberson (emberson@fx.com) wrote:
: 1) Does the latest ANSI C++ exception classes use the
: string class or do they use char*s?
:
: exception(const string& what_arg);
: virtual const string& what() const;
:
: or
:
: exception(const char* what_arg);
: virtual const char* what() const;
I believe it the constructor uses a string and the 'what' member
returns a const char *, if I remember correctly. (I don't have
the draft handy.)
:
: 2) Is the name of the logic error class "logic" or
: "logic_error".
logic_error
Eric Lemings
Author: emberson@fx.com (Richard M. Emberson)
Date: 1995/04/14 Raw View
1) Does the latest ANSI C++ exception classes use the
string class or do they use char*s?
exception(const string& what_arg);
virtual const string& what() const;
or
exception(const char* what_arg);
virtual const char* what() const;
2) Is the name of the logic error class "logic" or
"logic_error".
3) Is there any way for an object being thrown to know
when it is thrown, i.e., must compiler implementors
determine if the object being thrown is derived from
class exceptions and, if it is so derived, call its
raise() method.
Richard Emberson
--
Dow Jones Telerate Systems, Inc. mail: emberson@fx.com
2465 Faber Place uucp: uunet!fx!emberson
Palo Alto, California 94303 phone: 415/858-7777-242