- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Utils/Exceptions/OutOfRangeException.h

    00001
    00002 //
    00003 // Copyright (c) 2004           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00009 // Organization:        Model-based Embedded and Robotic Systems Group
    00010 //                                      Massachusetts Institute of Technology
    00011 //
    00013
    00014 #ifndef OUT_OF_RANGE_EXCEPTION_H
    00015 #define OUT_OF_RANGE_EXCEPTION_H
    00016
    00017 #include "Exception.h"
    00018 #include <stdexcept>
    00019
    00020 namespace Mers {
    00021         namespace Utils {
    00022                 namespace Exceptions {
    00023
    00027                         class OutOfRangeException : public std::out_of_range, public Exception
    00028                         {
    00029                         public:
    00044                                 OutOfRangeException(unsigned int lowerBound, unsigned int upperBound,
    00045                                         unsigned int index, char const * fileName = NULL,
    00046                                         unsigned int lineNumber = 0);
    00047
    00051                                 virtual ~OutOfRangeException() throw();
    00052                         };
    00053                 }
    00054         }
    00055 }
    00056
    00057 #endif // OUT_OF_RANGE_EXCEPTION