Method: RMQ::Constants#decode_reason_code

Defined in:
lib/rmq/constants.rb

#decode_reason_code(reason_code) ⇒ Object



778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
# File 'lib/rmq/constants.rb', line 778

def decode_reason_code(reason_code)
  reason_codes = {
   0 => :MQRC_NONE,
   2002 => :MQRC_ALREADY_CONNECTED,
   2019 => :MQRC_HOBJ_ERROR,
   2033 => :MQRC_NO_MSG_AVAILABLE,
   2037 => :MQRC_NOT_OPEN_FOR_INPUT,
   2079 => :MQRC_TRUNCATED_MSG_ACCEPTED,
   MQRC_TRUNCATED_MSG_FAILED => :MQRC_TRUNCATED_MSG_FAILED,
   2186 => :MQRC_GMO_ERROR,
   2309 => :MQRC_SELECTOR_NOT_PRESENT,
   2320 => :MQRC_HBAG_ERROR,
   2324 => :MQRC_INQUIRY_COMMAND_ERROR
   }
  reason_codes[reason_code]
end