LayoutExceptionEnum.cpp 668 B

123456789101112131415161718192021222324252627282930
  1. #include "LayoutExceptionEnum.h"
  2. LayoutExceptionEnum::LayoutExceptionEnum()
  3. {
  4. }
  5. QString LayoutExceptionEnum::getStringForEnum(LayoutExceptionEnum::LayoutExceptionTypes enExceptionTypes)
  6. {
  7. QString sExceptionTypeString;
  8. switch(enExceptionTypes)
  9. {
  10. case LAYOUTEXCEPTION:
  11. sExceptionTypeString = "LAYOUTEXCEPTION";
  12. break;
  13. case LAYOUT_FILEIOEXCEPTION:
  14. sExceptionTypeString = "FILEIOEXCEPTION";
  15. break;
  16. case LAYOUT_MEMORYEXCEPTION:
  17. sExceptionTypeString = "MEMORYEXCEPTION";
  18. break;
  19. default:
  20. sExceptionTypeString = "LAYOUTEXCEPTION";
  21. break;
  22. }
  23. return sExceptionTypeString;
  24. }