def process_result(result)
      unless result == 0
        # Analyse the result and report what is wrong:
        case result
          when 1
            logger.warn("DICOM Request was rejected by the host, reason: 'User-rejection'")
          when 2
            logger.warn("DICOM Request was rejected by the host, reason: 'No reason (provider rejection)'")
          when 3
            logger.warn("DICOM Request was rejected by the host, reason: 'Abstract syntax not supported'")
          when 4
            logger.warn("DICOM Request was rejected by the host, reason: 'Transfer syntaxes not supported'")
          else
            logger.warn("DICOM Request was rejected by the host, reason: 'UNKNOWN (#{result})' (Illegal reason provided)")
        end
      end
    end
def process_result(result)
      unless result == 0
        # Analyse the result and report what is wrong:
        case result
          when 1
            logger.warn("DICOM Request was rejected by the host, reason: 'User-rejection'")
          when 2
            logger.warn("DICOM Request was rejected by the host, reason: 'No reason (provider rejection)'")
          when 3
            logger.warn("DICOM Request was rejected by the host, reason: 'Abstract syntax not supported'")
          when 4
            logger.warn("DICOM Request was rejected by the host, reason: 'Transfer syntaxes not supported'")
          else
            logger.warn("DICOM Request was rejected by the host, reason: 'UNKNOWN (#{result})' (Illegal reason provided)")
        end
      end
    end
Processes the value of the result byte received in the association response.
 Prints an explanation if an error is indicated.

 === Notes

 A value other than 0 indicates an error.

 === Parameters

 * <tt>result</tt> -- Integer. The result code from an association response.