public String getUPnPErrorDescription() { Node errorDescNode = getUPnPErrorDescriptionNode(); if (errorDescNode == null) { return ""; } return errorDescNode.getValue(); }
public int getUPnPErrorCode() { Node errorCodeNode = getUPnPErrorCodeNode(); if (errorCodeNode == null) { return -1; } String errorCodeStr = errorCodeNode.getValue(); try { return Integer.parseInt(errorCodeStr); } catch (Exception e) { return -1; } }