class FailureMessageEncoder implements ResponseMessageEncoder<FailureMessage> {

    @Override
    public void encode( Neo4jPack.Packer packer, FailureMessage message ) throws IOException
    {
        if ( message instanceof FatalFailureMessage )
        {
            log.debug( "Encoding a fatal failure message to send. Message: %s", message );
        }
        encodeFailure( message, packer );
    }

    public  FailureMessageEncoder( Log log );

}