lib/metadataprotocol.js
function(requestId, exceptionMessage, exceptionType, exceptionData) {
		return writeExtendedException(requestId, metadataMethods.NOTIFY_NEW_SESSION, exceptionMessage, exceptionType, exceptionData);
	}
function(requestId, exceptionMessage, exceptionType, exceptionData) {
		return writeExtendedException(requestId, metadataMethods.NOTIFY_NEW_SESSION, exceptionMessage, exceptionType, exceptionData);
	}
function ( requestId , exceptionMessage , exceptionType , exceptionData ) { return writeExtendedException ( requestId , metadataMethods . NOTIFY_NEW_SESSION , exceptionMessage , exceptionType , exceptionData ) ; }
Encodes an unsuccessful notify new session reply.

@param {String} requestId the originating request id
@param {String} exceptionMessage the exception message
@param {String} [exceptionType] the exception type. Allowed values: notification, credits, conflictingSession
@param {Object} [exceptionData] extra information which depends on the exception type
@return {String} the encoded message
@private
Encodes an unsuccessful notify new session reply .