*/
public void encode( ByteBuffer buf, ChangePasswordError message ) throws IOException
{
// Build error message bytes
ErrorMessage errorMessage = message.getErrorMessage();
ErrorMessageEncoder errorEncoder = new ErrorMessageEncoder();
byte[] errorBytes = errorEncoder.encode( errorMessage );
short messageLength = ( short ) ( HEADER_LENGTH + errorBytes.length );
buf.putShort( messageLength );
short protocolVersion = 1;