Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial sn7544
Fork of GPG_motor by
ros/exception.h@13:681f3d1e9077, 2019-08-07 (annotated)
- Committer:
- kangmingyo
- Date:
- Wed Aug 07 13:40:22 2019 +0000
- Revision:
- 13:681f3d1e9077
- Parent:
- 11:2228e8931266
0;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Jeonghoon | 11:2228e8931266 | 1 | /* |
| Jeonghoon | 11:2228e8931266 | 2 | * Copyright (C) 2009, Willow Garage, Inc. |
| Jeonghoon | 11:2228e8931266 | 3 | * |
| Jeonghoon | 11:2228e8931266 | 4 | * Redistribution and use in source and binary forms, with or without |
| Jeonghoon | 11:2228e8931266 | 5 | * modification, are permitted provided that the following conditions are met: |
| Jeonghoon | 11:2228e8931266 | 6 | * * Redistributions of source code must retain the above copyright notice, |
| Jeonghoon | 11:2228e8931266 | 7 | * this list of conditions and the following disclaimer. |
| Jeonghoon | 11:2228e8931266 | 8 | * * Redistributions in binary form must reproduce the above copyright |
| Jeonghoon | 11:2228e8931266 | 9 | * notice, this list of conditions and the following disclaimer in the |
| Jeonghoon | 11:2228e8931266 | 10 | * documentation and/or other materials provided with the distribution. |
| Jeonghoon | 11:2228e8931266 | 11 | * * Neither the names of Stanford University or Willow Garage, Inc. nor the names of its |
| Jeonghoon | 11:2228e8931266 | 12 | * contributors may be used to endorse or promote products derived from |
| Jeonghoon | 11:2228e8931266 | 13 | * this software without specific prior written permission. |
| Jeonghoon | 11:2228e8931266 | 14 | * |
| Jeonghoon | 11:2228e8931266 | 15 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| Jeonghoon | 11:2228e8931266 | 16 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| Jeonghoon | 11:2228e8931266 | 17 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| Jeonghoon | 11:2228e8931266 | 18 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| Jeonghoon | 11:2228e8931266 | 19 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| Jeonghoon | 11:2228e8931266 | 20 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| Jeonghoon | 11:2228e8931266 | 21 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| Jeonghoon | 11:2228e8931266 | 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| Jeonghoon | 11:2228e8931266 | 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| Jeonghoon | 11:2228e8931266 | 24 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| Jeonghoon | 11:2228e8931266 | 25 | * POSSIBILITY OF SUCH DAMAGE. |
| Jeonghoon | 11:2228e8931266 | 26 | */ |
| Jeonghoon | 11:2228e8931266 | 27 | |
| Jeonghoon | 11:2228e8931266 | 28 | #ifndef ROSLIB_EXCEPTION_H |
| Jeonghoon | 11:2228e8931266 | 29 | #define ROSLIB_EXCEPTION_H |
| Jeonghoon | 11:2228e8931266 | 30 | |
| Jeonghoon | 11:2228e8931266 | 31 | #include <stdexcept> |
| Jeonghoon | 11:2228e8931266 | 32 | |
| Jeonghoon | 11:2228e8931266 | 33 | namespace ros |
| Jeonghoon | 11:2228e8931266 | 34 | { |
| Jeonghoon | 11:2228e8931266 | 35 | |
| Jeonghoon | 11:2228e8931266 | 36 | /** |
| Jeonghoon | 11:2228e8931266 | 37 | * \brief Base class for all exceptions thrown by ROS |
| Jeonghoon | 11:2228e8931266 | 38 | */ |
| Jeonghoon | 11:2228e8931266 | 39 | class Exception : public std::runtime_error |
| Jeonghoon | 11:2228e8931266 | 40 | { |
| Jeonghoon | 11:2228e8931266 | 41 | public: |
| Jeonghoon | 11:2228e8931266 | 42 | Exception(const std::string& what) |
| Jeonghoon | 11:2228e8931266 | 43 | : std::runtime_error(what) |
| Jeonghoon | 11:2228e8931266 | 44 | {} |
| Jeonghoon | 11:2228e8931266 | 45 | }; |
| Jeonghoon | 11:2228e8931266 | 46 | |
| Jeonghoon | 11:2228e8931266 | 47 | } // namespace ros |
| Jeonghoon | 11:2228e8931266 | 48 | |
| Jeonghoon | 11:2228e8931266 | 49 | #endif |
