diff options
Diffstat (limited to 'devtools/swigwin-1.3.34/Lib/perl5/perlerrors.swg')
| -rw-r--r-- | devtools/swigwin-1.3.34/Lib/perl5/perlerrors.swg | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/devtools/swigwin-1.3.34/Lib/perl5/perlerrors.swg b/devtools/swigwin-1.3.34/Lib/perl5/perlerrors.swg new file mode 100644 index 0000000..024f037 --- /dev/null +++ b/devtools/swigwin-1.3.34/Lib/perl5/perlerrors.swg @@ -0,0 +1,49 @@ +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + +SWIGINTERN const char* +SWIG_Perl_ErrorType(int code) { + const char* type = 0; + switch(code) { + case SWIG_MemoryError: + type = "MemoryError"; + break; + case SWIG_IOError: + type = "IOError"; + break; + case SWIG_RuntimeError: + type = "RuntimeError"; + break; + case SWIG_IndexError: + type = "IndexError"; + break; + case SWIG_TypeError: + type = "TypeError"; + break; + case SWIG_DivisionByZero: + type = "ZeroDivisionError"; + break; + case SWIG_OverflowError: + type = "OverflowError"; + break; + case SWIG_SyntaxError: + type = "SyntaxError"; + break; + case SWIG_ValueError: + type = "ValueError"; + break; + case SWIG_SystemError: + type = "SystemError"; + break; + case SWIG_AttributeError: + type = "AttributeError"; + break; + default: + type = "RuntimeError"; + } + return type; +} + + + |