Skip to content

Instantly share code, notes, and snippets.

@qcom
Created Mar 22, 2016
Embed
What would you like to do?
> 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