public Response createCorrespondingErrorResponse(char requestType,char errorCode,String reasonPhrase,char... unknownAttributes){
  if (requestType == Message.BINDING_REQUEST) {
    if (unknownAttributes != null) {
      return MessageFactory.createBindingErrorResponse(errorCode,reasonPhrase,unknownAttributes);
    }
 else {
      return MessageFactory.createBindingErrorResponse(errorCode,reasonPhrase);
    }
  }
 else {
    return null;
  }
}

public Response createCorrespondingErrorResponse ( char requestType , char errorCode , String reasonPhrase , char ... unknownAttributes ) { if ( requestType == Message . BINDING_REQUEST ) { if ( unknownAttributes != null ) { return MessageFactory . createBindingErrorResponse ( errorCode , reasonPhrase , unknownAttributes ) ; } else { return MessageFactory . createBindingErrorResponse ( errorCode , reasonPhrase ) ; } } else { return null ; } }
returns the error response object with specified errorcode and reasonphrase corresponding to input type .
