Module: Advanced Tools Package: Streams
RWExternalStreamException RWExternalErr
#include <rw/stream/RWExternalStreamException.h>
Base class for all the stream exceptions.
Code | Meaning |
featureNotSupported | Reports a feature not currently supported due to compiler limitation. |
flush | Error while flushing the stream. |
get | Error while reading a data type. |
internalIstream | Internal istream object is in fail or bad state. |
internalOstream | Internal ostream object is in fail or bad state. |
invalidParameter | One of the parameters has been assigned an invalid value. |
invalidUTF8Encoding | A sequence of bytes is not formatted according to UTF-8. |
invalidUnicodeEncoding | A sequence of RWUChar does not represent a valid sequence of UTF-16 characters. |
ok = 0 | Everything is fine. |
outOfMemory | The last memory allocation request failed. |
read | Error while reading an RWByte, char, wchar_t, or RWUChar. |
write | Error while writing to the stream. |
RWExternalStreamException();
Constructs an empty stream exception.
RWExternalStreamException(const RWCString& msg,ErrorCode err);
Constructs a stream exception, and initializes it with the error message msg and the error code err.
Parameter List
msg |
A message describing the error. |
err |
The error code associated with the error. |
RWExternalStreamException(const RWExternalStreamException& x);
Copy constructor.
Parameter List
x |
A stream exception used to initialize the newly created stream exception. |
RWExternalStreamException(const char* msg,ErrorCode err);
Constructs a stream exception, and initializes it with the error message msg and the error code err.
Parameter List
msg |
A message describing the error. |
err |
The error code associated with the error. |
ErrorCode errorCode() const;
Returns the error code associated with a particular stream exception instance.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.