src/index.js
/**
     * Sets the payload fields as instance fields. Message, code and stack are ignored.
     * 
     * @param {Object} payload 
     */
Sets the payload fields as instance fields. Message, code and stack are ignored.

@param {Object} payload
Sets the payload fields as instance fields . Message code and stack are ignored . @param { Object } payload
_setPayload(payload) {
		for (let k in payload) {
			if (['message', 'code', 'stack'].indexOf(k) >= 0) {
				continue;
			}
			this[k] = payload[k];
		}
	}
_setPayload ( payload ) { for ( let k in payload ) { if ( [ 'message' , 'code' , 'stack' ] . indexOf ( k ) >= 0 ) { continue ; } this [ k ] = payload [ k ] ; } }
Sets the payload fields as instance fields.
Sets the payload fields as instance fields .