Creates a JS Error object with the given message and stack.
If a stack object is provided, the error object is created in the global that it belongs to.
Generated using TypeDoc
Creates a JS Error object with the given message and stack.
If a stack object is provided, the error object is created in the global that it belongs to.