mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-22 10:31:45 +03:00
62 lines
1.4 KiB
C++
62 lines
1.4 KiB
C++
/*
|
|
* synergy -- mouse and keyboard sharing utility
|
|
* Copyright (C) 2002 Chris Schoeneman
|
|
*
|
|
* This package is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* found in the file COPYING that should have accompanied this file.
|
|
*
|
|
* This package is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef XIO_H
|
|
#define XIO_H
|
|
|
|
#include "XBase.h"
|
|
|
|
//! Generic I/O exception
|
|
class XIO : public XBase { };
|
|
|
|
//! Generic I/O exception using \c errno
|
|
class XIOErrno : public XIO, public MXErrno {
|
|
public:
|
|
XIOErrno();
|
|
XIOErrno(int);
|
|
};
|
|
|
|
//! I/O closing exception
|
|
/*!
|
|
Thrown if a stream cannot be closed.
|
|
*/
|
|
class XIOClose: public XIOErrno {
|
|
protected:
|
|
// XBase overrides
|
|
virtual CString getWhat() const throw();
|
|
};
|
|
|
|
//! I/O already closed exception
|
|
/*!
|
|
Thrown when attempting to close or perform I/O on an already closed.
|
|
stream.
|
|
*/
|
|
class XIOClosed : public XIO {
|
|
protected:
|
|
// XBase overrides
|
|
virtual CString getWhat() const throw();
|
|
};
|
|
|
|
//! I/O end of stream exception
|
|
/*!
|
|
Thrown when attempting to read beyond the end of a stream.
|
|
*/
|
|
class XIOEndOfStream : public XIO {
|
|
protected:
|
|
// XBase overrides
|
|
virtual CString getWhat() const throw();
|
|
};
|
|
|
|
#endif
|