mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-19 00:41:49 +03:00
51 lines
1.2 KiB
C++
51 lines
1.2 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 { };
|
|
|
|
//! I/O closing exception
|
|
/*!
|
|
Thrown if a stream cannot be closed.
|
|
*/
|
|
class XIOClose : public XIO { };
|
|
|
|
//! 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
|