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

# /Users/fpy/titan-1-5-MBARI/Mers/Utils/Lang/Error.cpp

    00001
    00002 //
    00003 // Copyright (c) 2006           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 //
    00010
    00011 #include "Error.h"
    00012 #include "String.h"
    00013 // For std::strerror
    00014 #include <cstring>
    00015 // For std::errno
    00016 #include <cerrno>
    00017
    00019
    00020 using namespace Mers::Utils::Lang;
    00021 using std::strerror;
    00022
    00024
    00025 String Error::getLastError()
    00026 {
    00027         return getError( errno );
    00028 }
    00029
    00031
    00032 String Error::getError( int errorNumber )
    00033 {
    00034         return strerror( errorNumber );
    00035 }
    00036
    00038
    00039