Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
exceptions.h
Package: videoserver-0.6.2.tar.gz [view]
Upload User: psq1974
Upload Date: 2007-01-06
Package Size: 1195k
Code Size: 2k
Category:
mpeg mp3
Development Platform:
C/C++
- /* Copyright (C) 1998, 1999 State University of New York at Stony Brook
- Author: Andrew V. Shuvalov ( andrew@ecsl.cs.sunysb.edu )
- Software license is located in file "COPYING"
- */
- #ifndef exceptions_h
- #define exceptions_h
- #include <string>
- #ifdef _WIN32
- # define vsnprintf _vsnprintf
- #endif
- /** generic exception
- */
- class BasicException {
- std::string text;
- public:
- BasicException() {}
- void init( const char *format, ... );
- void init( const char *format, va_list ap );
- const std::string &getText() { return text; }
- };
- /** subclass of basic exceptions
- */
- class NetworkException : public BasicException {
- /** for example, in video_thread method broadcast_target::send may
- raise this exception if it can't send data to broadcast target.
- This pointer will point to broadcast_target that should be removed from
- the queue
- */
- void *some_pointer;
- public:
- NetworkException( void *some_pointer, const char *format, ... );
- void *get_pointer() const { return some_pointer; }
- };
- /** subclass of basic exceptions
- */
- class ProtocolException : public BasicException {
- public:
- ProtocolException( const char *format, ... );
- };
- /** subclass of basic exceptions
- */
- class SyntaxException : public BasicException {
- public:
- SyntaxException( const char *format, ... );
- };
- /** subclass of basic exceptions
- */
- class ShutdownException : public BasicException {
- public:
- ShutdownException( const char *format, ... );
- };
- /** subclass of basic exceptions
- */
- class MutexErrorException : public BasicException {
- public:
- MutexErrorException( const char *format, ... );
- };
- /** subclass of basic exceptions
- */
- class MutexTimeoutException : public BasicException {
- public:
- MutexTimeoutException( const char *format, ... );
- };
- /** subclass of basic exceptions
- */
- class VideoException : public BasicException {
- public:
- VideoException( const char *format, ... );
- };
- /** subclass of basic exceptions
- */
- class ComportException : public BasicException {
- public:
- ComportException( const char *format, ... );
- };
- #endif // exceptions_h