/* BACnet-Error ::= CHOICE { addListElement  ChangeList-Error, removeListElement  ChangeList-Error, writePropertyMultiple  WritePropertyMultiple-Error, confirmedPrivatTransfer  ConfirmedPrivateTransfer-Error, vtClose  VTClose-Error, readRange  ObjectAccessService-Error  Error }  */
static guint fBACnetError(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint service)
/* BACnet-Error ::= CHOICE { addListElement  ChangeList-Error, removeListElement  ChangeList-Error, writePropertyMultiple  WritePropertyMultiple-Error, confirmedPrivatTransfer  ConfirmedPrivateTransfer-Error, vtClose  VTClose-Error, readRange  ObjectAccessService-Error  Error }  */
static guint fBACnetError(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint service)
{
    switch (service) {
    case 8:
    case 9:
        offset = fChangeListError(tvb, pinfo, tree, offset);
        break;
    case 10:
        offset = fCreateObjectError(tvb, pinfo, tree, offset);
        break;
    case 16:
        offset = fWritePropertyMultipleError(tvb, pinfo, tree, offset);
        break;
    case 18:
        offset = fConfirmedPrivateTransferError(tvb, pinfo, tree, offset);
        break;
    case 22:
        offset = fVTCloseError(tvb, pinfo, tree, offset);
        break;
    default:
        return fError(tvb, pinfo, tree, offset);
    }
    return offset;
}