00001 /* 00002 * $Id: StreamException.h 562 2007-12-02 08:04:16Z mindstorm2600 $ 00003 * 00004 * X-VR2 00005 * 00006 * Copyright (C) Juan V. Guerrero 2007 00007 * 00008 * Juan V. Guerrero <mindstorm2600@users.sourceforge.net> 00009 * 00010 * This program is free software, distributed under the terms of 00011 * the GNU General Public License Version 2. See the LICENSE file 00012 * at the top of the source tree. 00013 */ 00014 #ifndef __XVR2_STREAM_EXCEPTION_H__ 00015 #define __XVR2_STREAM_EXCEPTION_H__ 00016 #include<xvr2/String.h> 00017 #include<xvr2/SystemException.h> 00018 00019 namespace xvr2 { 00021 class StreamException : public SystemException { 00022 public: 00023 StreamException(); 00024 StreamException(int c); 00025 }; 00026 00027 class StreamIsNotFlushable : public StreamException { 00028 public: 00029 StreamIsNotFlushable(); 00030 StreamIsNotFlushable(int c); 00031 }; 00032 00033 class StreamIsNotSeekable : public StreamException { 00034 public: 00035 StreamIsNotSeekable(); 00036 StreamIsNotSeekable(int c); 00037 }; 00038 } 00039 00040 #endif 00041