exception.hpp

来自「rcssserver3d Robocup 3D比赛官方指定平台」· HPP 代码 · 共 138 行

HPP
138
字号
// -*-c++-*-/***************************************************************************               exception.hpp  -  Network associated excpetions                             -------------------    begin                : 07-JAN-2003    copyright            : (C) 2003 by The RoboCup Soccer Server                           Maintenance Group.    email                : sserver-admin@lists.sourceforge.net ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU LGPL as published by the Free Software  * *   Foundation; either version 2 of the License, or (at your option) any  * *   later version.                                                        * *                                                                         * ***************************************************************************/#ifndef RCSS_NET_EXCPETION_HPP#define RCSS_NET_EXCEPTION_HPP#include <exception>namespace rcss{    namespace net    {        class HostNotFound            : public std::exception        {        public:            HostNotFound( int err ) throw();            const char*            what() const throw();            int            err() const throw();        private:            int m_err;        };        class OpenErr            : public std::exception        {        public:            OpenErr( int err ) throw();            const char*            what() const throw();            int            err() const throw();        private:            int m_err;        };        class BindErr            : public std::exception        {        public:            BindErr( int err ) throw();            const char*            what() const throw();            int            err() const throw();        private:            int m_err;        };        class ListenErr            : public std::exception        {        public:            ListenErr( int err ) throw();            const char*            what() const throw();            int            err() const throw();        private:            int m_err;        };        class AcceptErr            : public std::exception        {        public:            AcceptErr( int err ) throw();            const char*            what() const throw();            int            err() const throw();        private:            int m_err;        };        class GetNameErr            : public std::exception        {        public:            GetNameErr( int err ) throw();            const char*            what() const throw();            int            err() const throw();        private:            int m_err;        };        class ConnectErr            : public std::exception        {        public:            ConnectErr( int err ) throw();            const char*            what() const throw();            int            err() const throw();        private:            int m_err;        };    }}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?