lib/metadataprotocol.js
function writeDefaultException(requestId, requestType, exceptionMessage) {
	return protocol.implodeMessage(requestId, requestType,
		exceptions.GENERIC,
		protocol.encodeString(exceptionMessage));
}
function writeDefaultException(requestId, requestType, exceptionMessage) {
	return protocol.implodeMessage(requestId, requestType,
		exceptions.GENERIC,
		protocol.encodeString(exceptionMessage));
}
function writeDefaultException ( requestId , requestType , exceptionMessage ) { return protocol . implodeMessage ( requestId , requestType , exceptions . GENERIC , protocol . encodeString ( exceptionMessage ) ) ; }
Encodes an unsuccessful reply of an unspecified type.

@param {String} requestId the originating request id
@param {String} requestType the originating request method name
@param {String} exceptionMessage the exception message
@return {String} the encoded message
@private
Encodes an unsuccessful reply of an unspecified type .