Now you can download a copy of these docs so you can use them offline! Download now
IOException.cpp
1 /*
2  * IOException.cpp
3  *
4  * Created on: Oct 1, 2012
5  * Author: Mitchell Wills
6  */
7 
8 #include "networktables2/util/IOException.h"
9 #include <stdlib.h>
10 #include <string.h>
11 
12 
13 IOException::IOException(const char* msg) : message(strdup(msg)), errorValue(0){}
14 IOException::IOException(const char* msg, int _errorValue) : message(strdup(msg)), errorValue(_errorValue){}
15 
16 const char* IOException::what(){
17  return message;
18 }
19 
20 bool IOException::isEOF(){return false;}
21 
22 IOException::~IOException() throw (){
23  free((void*)message);
24 }
const char * what()
Definition: IOException.cpp:16
IOException(const char *message)
Definition: IOException.cpp:13
virtual bool isEOF()
Definition: IOException.cpp:20

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6