lib/dataprotocol.js
function(requestId, exceptionMessage, exceptionType) {
		if (exceptionType === "data") {
			return protocol.implodeMessage(requestId, dataMethods.DATA_INIT,
				exceptions.DATA, protocol.encodeString(exceptionMessage));
		} else {
			return protocol.implodeMessage(requestId, dataMethods.DATA_INIT,
				exceptions.GENERIC, protocol.encodeString(exceptionMessage));
		}
	}
function(requestId, exceptionMessage, exceptionType) {
		if (exceptionType === "data") {
			return protocol.implodeMessage(requestId, dataMethods.DATA_INIT,
				exceptions.DATA, protocol.encodeString(exceptionMessage));
		} else {
			return protocol.implodeMessage(requestId, dataMethods.DATA_INIT,
				exceptions.GENERIC, protocol.encodeString(exceptionMessage));
		}
	}
function ( requestId , exceptionMessage , exceptionType ) { if ( exceptionType === "data" ) { return protocol . implodeMessage ( requestId , dataMethods . DATA_INIT , exceptions . DATA , protocol . encodeString ( exceptionMessage ) ) ; } else { return protocol . implodeMessage ( requestId , dataMethods . DATA_INIT , exceptions . GENERIC , protocol . encodeString ( exceptionMessage ) ) ; } }
Encodes an unsuccessful initialization reply.

@param {String} requestId the originating request id
@param {String} exceptionMessage the exception message
@param {String} [exceptionType] the exception type. Allowed values: data
@return {String} the encoded message
@private
Encodes an unsuccessful initialization reply .