Files
barrier/io/XIO.cpp
crs f129841b38 made all getWhat() methods on exceptions consistent. they now
all use format() the same way.  also changed format() to actually
do formatting.  however, it doesn't try looking up formatting
strings by id, it just uses the fallback format string.
2002-07-25 17:52:40 +00:00

51 lines
541 B
C++

#include "XIO.h"
//
// XIOErrno
//
XIOErrno::XIOErrno() :
MXErrno()
{
// do nothing
}
XIOErrno::XIOErrno(int err) :
MXErrno(err)
{
// do nothing
}
//
// XIOClose
//
CString
XIOClose::getWhat() const throw()
{
return format("XIOClose", "close: %{1}", XIOErrno::getErrstr());
}
//
// XIOClosed
//
CString
XIOClosed::getWhat() const throw()
{
return format("XIOClosed", "already closed");
}
//
// XIOEndOfStream
//
CString
XIOEndOfStream::getWhat() const throw()
{
return format("XIOEndOfStream", "reached end of stream");
}