1(import [enum [Enum]])23;; From src/protocol/Ack.hxx in mpd source4(defclass ACKError [Enum]5 [NOT_LIST 16 ARG 27 PASSWORD 38 PERMISSION 49 UNKNOWN 510 NO_EXIST 5011 PLAYLIST_MAX 5112 SYSTEM 5213 PLAYLIST_LOAD 5314 UPDATE_ALREADY 5415 PLAYER_SYNC 5516 EXIST 56])1718(defclass MPDException [Exception]19 (defn --init-- [self code msg &optional [lst-num 0] [cur-cmd ""]]20 (if (not (isinstance code ACKError))21 (raise (TypeError "Exception code must be an ACKError")))22 (setv self.code code)23 (setv self.msg msg)24 (setv self.lst-num lst-num)25 (setv self.cur-cmd cur-cmd))2627 ;; Format: ACK [error@command_listNum] {current_command} message_text28 (defn __str__ [self]29 (% "ACK [%d@%d] {%s} %s" (, self.code.value self.lst-num30 self.cur-cmd self.msg))))