2
0

rterror.h 802 B

1234567891011121314151617181920
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. //
  7. // Defines trappable runtime error handling.
  8. //
  9. #include "rterrors_limits.h"
  10. enum rtErrors
  11. {
  12. #define RT_ERROR_MSG(name, errnum, str1, str2, jst, errorNumSource) name = MAKE_HR(errnum),
  13. #define RT_PUBLICERROR_MSG(name, errnum, str1, str2, jst, errorNumSource) name = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_JSCRIPT, errnum),
  14. #include "rterrors.h"
  15. #undef RT_PUBLICERROR_MSG
  16. #undef RT_ERROR_MSG
  17. MWUNUSED_rtError
  18. };