id3_error.cpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #if 0 //JF 10.30.00
  2. // The authors have released ID3Lib as Public Domain(PD) and claim no copyright,
  3. // patent or other intellectual property protection in this work. This means that
  4. // it may be modified, redistributed and used in commercial and non-commercial
  5. // software and hardware without restrictions. ID3Lib is distributed on an "AS IS"
  6. // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
  7. //
  8. // The ID3Lib authors encourage improvements and optimisations to be sent to the
  9. // ID3Lib coordinator, currently Dirk Mahoney([email protected]). Approved
  10. // submissions may be altered, and will be included and released under these terms.
  11. //
  12. // Mon Nov 23 18:34:01 1998
  13. #include <string.h>
  14. #include "id3_error.h"
  15. /*static char *ID3_ErrorDescs[] =
  16. {
  17. "out of memory",
  18. "no source/dest data specified",
  19. "no buffer specified",
  20. "invalid frame id",
  21. "field not found",
  22. "unknown field type",
  23. "tag is already attached to a file",
  24. "invalid tag version",
  25. "file not found",
  26. "error in zlib compression library"
  27. };*/
  28. ID3_Error::ID3_Error(ID3_Err code, char *file, luint line)
  29. {
  30. error = code;
  31. errLine = line;
  32. lstrcpyn(errFile, file, 256);
  33. }
  34. ID3_Err ID3_Error::GetErrorID(void)
  35. {
  36. return error;
  37. }
  38. /*char *ID3_Error::GetErrorDesc(void)
  39. {
  40. return ID3_ErrorDescs[error];
  41. }*/
  42. char *ID3_Error::GetErrorFile(void)
  43. {
  44. return errFile;
  45. }
  46. luint ID3_Error::GetErrorLine(void)
  47. {
  48. return errLine;
  49. }
  50. #endif