Exception.h 609 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "il2cpp-config.h"
  3. #include <string>
  4. struct Il2CppException;
  5. #include "Baselib.h"
  6. #include "C/Baselib_ErrorState.h"
  7. namespace il2cpp
  8. {
  9. namespace utils
  10. {
  11. class LIBIL2CPP_CODEGEN_API Exception
  12. {
  13. public:
  14. static std::string FormatException(const Il2CppException* ex);
  15. static std::string FormatStackTrace(const Il2CppException* ex);
  16. static std::string FormatInvalidCastException(const Il2CppClass* fromType, const Il2CppClass* toType);
  17. static std::string FormatBaselibErrorState(const Baselib_ErrorState& errorState);
  18. };
  19. } // utils
  20. } // utils