Skip to content

Instantly share code, notes, and snippets.

@qcom
Created March 22, 2016 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qcom/9087a6cf17dfaf5ceb8d to your computer and use it in GitHub Desktop.
Save qcom/9087a6cf17dfaf5ceb8d to your computer and use it in GitHub Desktop.
> err
{ handle: 2,
type: 'error',
className: 'Error',
constructorFunction: { ref: 10 },
protoObject: { ref: 11 },
prototypeObject: { ref: 1 },
properties:
[ { name: 'stack', attributes: 2, propertyType: 3, ref: 1 },
{ name: 'message', attributes: 2, propertyType: 0, ref: 12 },
{ name: 'root', propertyType: 0, ref: 13 },
{ name: 'response', propertyType: 0, ref: 3 },
{ name: 'body', propertyType: 0, ref: 5 } ],
text: 'Error: SOAP-ENV:Server: 40030: Customer Not Found' }
> err.text
> Object.keys(err)
[ 'root', 'response', 'body' ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment