| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
- // Please see LICENSE.md in repository root for license information
- // https://github.com/AtomicGameEngine/AtomicGameEngine
- #pragma once
- #include <Atomic/Core/Object.h>
- namespace Atomic
- {
- /*
- name standard Name of error, e.g. TypeError, inherited
- message standard Optional message of error, own property, empty message inherited if absent
- fileName Rhino Filename related to error source, inherited accessor
- lineNumber Rhino Linenumber related to error source, inherited accessor
- stack V8 Traceback as a multi-line human redable string, inherited accessor
- */
- EVENT(E_JSOBJECTADDED, ObjectAdded)
- {
- PARAM(P_OBJECT, Object); // object
- }
- EVENT(E_JSOBJECTREMOVED, ObjectRemoved)
- {
- PARAM(P_OBJECT, Object); // object
- }
- EVENT(E_JSERROR, JSError)
- {
- PARAM(P_ERRORNAME, ErrorName); // string
- PARAM(P_ERRORMESSAGE, ErrorMessage); // string
- PARAM(P_ERRORFILENAME, ErrorFileName); // string
- PARAM(P_ERRORLINENUMBER, ErrorLineNumber); // int
- PARAM(P_ERRORSTACK, ErrorStack); // string
- }
- EVENT(E_JSPRINT, JSPrint)
- {
- PARAM(P_TEXT, Text); // string
- }
- }
|