Panda3D
pandatool
src
flt
fltError.cxx
1
// Filename: fltError.cxx
2
// Created by: drose (24Aug00)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#include "fltError.h"
16
17
ostream &
18
operator << (ostream &out, FltError error) {
19
switch
(error) {
20
case
FE_ok:
21
return
out <<
"no error"
;
22
23
case
FE_could_not_open:
24
return
out <<
"could not open file"
;
25
26
case
FE_empty_file:
27
return
out <<
"empty file"
;
28
29
case
FE_end_of_file:
30
return
out <<
"unexpected end of file"
;
31
32
case
FE_read_error:
33
return
out <<
"read error on file"
;
34
35
case
FE_invalid_record:
36
return
out <<
"invalid record"
;
37
38
case
FE_extra_data:
39
return
out <<
"extra data at end of file"
;
40
41
case
FE_write_error:
42
return
out <<
"write error on file"
;
43
44
case
FE_bad_data:
45
return
out <<
"bad data"
;
46
47
case
FE_not_implemented:
48
return
out <<
"not implemented"
;
49
50
case
FE_internal:
51
return
out <<
"internal error"
;
52
53
default
:
54
return
out <<
"unknown error "
<< (int)error;
55
}
56
}
Generated on Wed May 17 2017 23:48:10 for Panda3D by
1.8.13