JSEvents.h 982 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  2. // Please see LICENSE.md in repository root for license information
  3. // https://github.com/AtomicGameEngine/AtomicGameEngine
  4. #pragma once
  5. #include <Atomic/Core/Object.h>
  6. namespace Atomic
  7. {
  8. /*
  9. name standard Name of error, e.g. TypeError, inherited
  10. message standard Optional message of error, own property, empty message inherited if absent
  11. fileName Rhino Filename related to error source, inherited accessor
  12. lineNumber Rhino Linenumber related to error source, inherited accessor
  13. stack V8 Traceback as a multi-line human redable string, inherited accessor
  14. */
  15. EVENT(E_JSERROR, JSError)
  16. {
  17. PARAM(P_ERRORNAME, ErrorName); // string
  18. PARAM(P_ERRORMESSAGE, ErrorMessage); // string
  19. PARAM(P_ERRORFILENAME, ErrorFileName); // string
  20. PARAM(P_ERRORLINENUMBER, ErrorLineNumber); // int
  21. PARAM(P_ERRORSTACK, ErrorStack); // string
  22. }
  23. EVENT(E_JSPRINT, JSPrint)
  24. {
  25. PARAM(P_TEXT, Text); // string
  26. }
  27. }