ExceptionUser.hpp 658 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "Exception.hpp"
  3. namespace nkg {
  4. class UserAbortionError final : public Exception {
  5. public:
  6. UserAbortionError(PCTSTR SourceFile, SIZE_T SourceLine, PCTSTR CustomMessage) noexcept :
  7. Exception(SourceFile, SourceLine, CustomMessage) {}
  8. [[nodiscard]]
  9. virtual bool HasErrorCode() const noexcept override {
  10. return false;
  11. }
  12. [[nodiscard]]
  13. virtual ULONG_PTR ErrorCode() const noexcept override {
  14. return 0;
  15. }
  16. [[nodiscard]]
  17. virtual PCTSTR ErrorString() const noexcept override {
  18. return nullptr;
  19. }
  20. };
  21. }