GraphLayoutErrorCodes.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef GRAPHLAYOUTERRORCODES_H
  2. #define GRAPHLAYOUTERRORCODES_H
  3. #include <GraphLayoutLibrary_global.h>
  4. #include<LayoutException/LayoutExceptionEnum.h>
  5. /**
  6. * @brief The GraphLayoutErrorCodes class
  7. *
  8. * The class provides layout related error codes.
  9. */
  10. class GRAPHLAYOUTLIBRARYSHARED_EXPORT GraphLayoutErrorCodes
  11. {
  12. public:
  13. /**
  14. * Constructs object of GraphLayoutErrorCodes
  15. */
  16. GraphLayoutErrorCodes();
  17. /**
  18. * Enum for codes of errors generated by layout library
  19. */
  20. enum LayoutErrorCode
  21. {
  22. LAYOUT_SUCCESS = 0,
  23. FILE_NOT_FOUND = LayoutExceptionEnum::FILE_NOT_FOUND,
  24. INVALID_FILE_NAME = LayoutExceptionEnum::INVALID_FILE_NAME,
  25. UNSUPPORTED_FILE_TYPE = LayoutExceptionEnum::UNSUPPORTED_FILE_TYPE,
  26. UNSUPPORTED_FILE_FORMAT = LayoutExceptionEnum::UNSUPPORTED_FILE_FORMAT,
  27. FILE_READ_OPERATION_ERROR = LayoutExceptionEnum::FILE_READ_OPERATION_ERROR,
  28. DIRECTORY_NOT_FOUND = LayoutExceptionEnum::DIRECTORY_NOT_FOUND,
  29. LAYOUT_INVALID_FILE_FORMAT = LayoutExceptionEnum::LAYOUT_INVALID_FILE_FORMAT,
  30. INVALID_FILE_OPERATION = LayoutExceptionEnum::INVALID_FILE_OPERATION,
  31. UNKNOWN_FILE_IOEXCEPTION = LayoutExceptionEnum::UNKNOWNFILEIOEXCEPTION,
  32. UNKNOWN_LAYOUT_EXCEPTION = LayoutExceptionEnum::UNKNOWNLAYOUTEXCEPTION
  33. };
  34. };
  35. #endif // GRAPHLAYOUTERRORCODES_H