cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject [08/20] CLOUDSTACK-6058: New XenServer 6.2sp1 SDKs
Date Tue, 25 Feb 2014 10:58:56 GMT
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2ff9abad/deps/XenServerJava/src/com/xensource/xenapi/Types.java
----------------------------------------------------------------------
diff --git a/deps/XenServerJava/src/com/xensource/xenapi/Types.java b/deps/XenServerJava/src/com/xensource/xenapi/Types.java
index 777d580..50f49a0 100644
--- a/deps/XenServerJava/src/com/xensource/xenapi/Types.java
+++ b/deps/XenServerJava/src/com/xensource/xenapi/Types.java
@@ -1,19 +1,19 @@
 /*
  * Copyright (c) Citrix Systems, Inc.
  * All rights reserved.
- *
+ * 
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
- *
+ * 
  *   1) Redistributions of source code must retain the above copyright
  *      notice, this list of conditions and the following disclaimer.
- *
+ * 
  *   2) Redistributions in binary form must reproduce the above
  *      copyright notice, this list of conditions and the following
  *      disclaimer in the documentation and/or other materials
  *      provided with the distribution.
- *
+ * 
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
@@ -28,6 +28,7 @@
  * OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+
 package com.xensource.xenapi;
 
 import java.util.Date;
@@ -44,7 +45,7 @@ import org.apache.xmlrpc.XmlRpcException;
 
 /**
  * This class holds vital marshalling functions, enum types and exceptions.
- *
+ * 
  * @author Citrix Systems, Inc.
  */
 public class Types
@@ -68,7 +69,7 @@ public class Types
         String[] result = new String[objArray.length];
         for (int i = 0; i < objArray.length; i++)
         {
-            result[i] = (String)objArray[i];
+            result[i] = (String) objArray[i];
         }
         return result;
     }
@@ -118,7 +119,6 @@ public class Types
             return sb.toString();
         }
     }
-
     /**
      * Thrown if the response from the server contains an invalid status.
      */
@@ -126,7 +126,7 @@ public class Types
     {
         public BadServerResponse(Map response)
         {
-            super(ObjectArrayToStringArray((Object[])response.get("ErrorDescription")));
+            super(ObjectArrayToStringArray((Object[]) response.get("ErrorDescription")));
         }
     }
 
@@ -144,9 +144,7 @@ public class Types
     /*
      * A call has been made which should not be made against this version of host.
      * Probably the host is out of date and cannot handle this call, or is
-     * unable to comply with the details of the call. For instance SR.create
-     * on Miami (4.1) hosts takes an smConfig parameter, which must be an empty map
-     * when making this call on Rio (4.0) hosts.
+     * unable to comply with the details of the call.
      */
     public static class VersionException extends XenAPIException
     {
@@ -172,11 +170,10 @@ public class Types
 
         return matcher.group(1);
     }
-
-    /**
-    * Checks the provided server response was successful. If the call failed, throws a XenAPIException. If the server
-    * returned an invalid response, throws a BadServerResponse. Otherwise, returns the server response as passed in.
-    */
+      /**
+     * Checks the provided server response was successful. If the call failed, throws a XenAPIException. If the server
+     * returned an invalid response, throws a BadServerResponse. Otherwise, returns the server response as passed in.
+     */
     static Map checkResponse(Map response) throws XenAPIException, BadServerResponse
     {
         if (response.get("Status").equals("Success"))
@@ -186,623 +183,628 @@ public class Types
 
         if (response.get("Status").equals("Failure"))
         {
-            String[] ErrorDescription = ObjectArrayToStringArray((Object[])response.get("ErrorDescription"));
+            String[] ErrorDescription = ObjectArrayToStringArray((Object[]) response.get("ErrorDescription"));
 
-            if (ErrorDescription[0].equals("RESTORE_TARGET_MISSING_DEVICE"))
+            if (ErrorDescription[0].equals("CANNOT_DESTROY_DISASTER_RECOVERY_TASK"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.RestoreTargetMissingDevice(p1);
+                throw new Types.CannotDestroyDisasterRecoveryTask(p1);
             }
-            if (ErrorDescription[0].equals("WLB_TIMEOUT"))
+            if (ErrorDescription[0].equals("IMPORT_ERROR_ATTACHED_DISKS_NOT_FOUND"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.WlbTimeout(p1);
+                throw new Types.ImportErrorAttachedDisksNotFound();
             }
-            if (ErrorDescription[0].equals("MAC_DOES_NOT_EXIST"))
+            if (ErrorDescription[0].equals("COULD_NOT_IMPORT_DATABASE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.MacDoesNotExist(p1);
+                throw new Types.CouldNotImportDatabase(p1);
             }
-            if (ErrorDescription[0].equals("HANDLE_INVALID"))
+            if (ErrorDescription[0].equals("HOST_CANNOT_ATTACH_NETWORK"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.HandleInvalid(p1, p2);
-            }
-            if (ErrorDescription[0].equals("DEVICE_ALREADY_ATTACHED"))
-            {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.DeviceAlreadyAttached(p1);
+                throw new Types.HostCannotAttachNetwork(p1, p2);
             }
-            if (ErrorDescription[0].equals("INVALID_IP_ADDRESS_SPECIFIED"))
+            if (ErrorDescription[0].equals("VM_INCOMPATIBLE_WITH_THIS_HOST"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.InvalidIpAddressSpecified(p1);
-            }
-            if (ErrorDescription[0].equals("SR_NOT_EMPTY"))
-            {
-                throw new Types.SrNotEmpty();
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.VmIncompatibleWithThisHost(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("VM_HVM_REQUIRED"))
+            if (ErrorDescription[0].equals("SESSION_INVALID"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmHvmRequired(p1);
+                throw new Types.SessionInvalid(p1);
             }
-            if (ErrorDescription[0].equals("GPU_GROUP_CONTAINS_PGPU"))
+            if (ErrorDescription[0].equals("XEN_VSS_REQ_ERROR_CREATING_SNAPSHOT"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.GpuGroupContainsPgpu(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.XenVssReqErrorCreatingSnapshot(p1, p2);
             }
-            if (ErrorDescription[0].equals("PIF_TUNNEL_STILL_EXISTS"))
+            if (ErrorDescription[0].equals("VM_REVERT_FAILED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.PifTunnelStillExists(p1);
-            }
-            if (ErrorDescription[0].equals("PIF_BOND_NEEDS_MORE_MEMBERS"))
-            {
-                throw new Types.PifBondNeedsMoreMembers();
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.VmRevertFailed(p1, p2);
             }
-            if (ErrorDescription[0].equals("PIF_ALREADY_BONDED"))
+            if (ErrorDescription[0].equals("CPU_FEATURE_MASKING_NOT_SUPPORTED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.PifAlreadyBonded(p1);
+                throw new Types.CpuFeatureMaskingNotSupported(p1);
             }
-            if (ErrorDescription[0].equals("CANNOT_DESTROY_DISASTER_RECOVERY_TASK"))
+            if (ErrorDescription[0].equals("HA_LOST_STATEFILE"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.CannotDestroyDisasterRecoveryTask(p1);
+                throw new Types.HaLostStatefile();
             }
-            if (ErrorDescription[0].equals("VLAN_TAG_INVALID"))
+            if (ErrorDescription[0].equals("VM_CANNOT_DELETE_DEFAULT_TEMPLATE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VlanTagInvalid(p1);
+                throw new Types.VmCannotDeleteDefaultTemplate(p1);
             }
-            if (ErrorDescription[0].equals("HOST_IS_SLAVE"))
+            if (ErrorDescription[0].equals("AUTH_ENABLE_FAILED_PERMISSION_DENIED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HostIsSlave(p1);
+                throw new Types.AuthEnableFailedPermissionDenied(p1);
             }
-            if (ErrorDescription[0].equals("SR_HAS_MULTIPLE_PBDS"))
+            if (ErrorDescription[0].equals("TOO_BUSY"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SrHasMultiplePbds(p1);
+                throw new Types.TooBusy();
             }
-            if (ErrorDescription[0].equals("POOL_AUTH_ENABLE_FAILED_INVALID_OU"))
+            if (ErrorDescription[0].equals("BACKUP_SCRIPT_FAILED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.PoolAuthEnableFailedInvalidOu(p1, p2);
-            }
-            if (ErrorDescription[0].equals("IMPORT_ERROR_SOME_CHECKSUMS_FAILED"))
-            {
-                throw new Types.ImportErrorSomeChecksumsFailed();
+                throw new Types.BackupScriptFailed(p1);
             }
-            if (ErrorDescription[0].equals("OPENVSWITCH_NOT_ACTIVE"))
+            if (ErrorDescription[0].equals("HOST_NOT_LIVE"))
             {
-                throw new Types.OpenvswitchNotActive();
+                throw new Types.HostNotLive();
             }
-            if (ErrorDescription[0].equals("CANNOT_FIND_OEM_BACKUP_PARTITION"))
+            if (ErrorDescription[0].equals("LICENSE_EXPIRED"))
             {
-                throw new Types.CannotFindOemBackupPartition();
+                throw new Types.LicenseExpired();
             }
-            if (ErrorDescription[0].equals("PIF_DEVICE_NOT_FOUND"))
+            if (ErrorDescription[0].equals("VM_REQUIRES_NETWORK"))
             {
-                throw new Types.PifDeviceNotFound();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.VmRequiresNetwork(p1, p2);
             }
-            if (ErrorDescription[0].equals("DOMAIN_BUILDER_ERROR"))
+            if (ErrorDescription[0].equals("LOCATION_NOT_UNIQUE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                throw new Types.DomainBuilderError(p1, p2, p3);
+                throw new Types.LocationNotUnique(p1, p2);
             }
-            if (ErrorDescription[0].equals("PATCH_PRECHECK_FAILED_VM_RUNNING"))
+            if (ErrorDescription[0].equals("VGPU_TYPE_NOT_SUPPORTED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.PatchPrecheckFailedVmRunning(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.VgpuTypeNotSupported(p1, p2);
             }
-            if (ErrorDescription[0].equals("VM_REQUIRES_IOMMU"))
+            if (ErrorDescription[0].equals("HOST_HAS_NO_MANAGEMENT_IP"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmRequiresIommu(p1);
+                throw new Types.HostHasNoManagementIp();
             }
-            if (ErrorDescription[0].equals("HA_HOST_CANNOT_SEE_PEERS"))
+            if (ErrorDescription[0].equals("XEN_VSS_REQ_ERROR_CREATING_SNAPSHOT_XML_STRING"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                throw new Types.HaHostCannotSeePeers(p1, p2, p3);
+                throw new Types.XenVssReqErrorCreatingSnapshotXmlString(p1, p2);
             }
-            if (ErrorDescription[0].equals("POOL_AUTH_DISABLE_FAILED_PERMISSION_DENIED"))
+            if (ErrorDescription[0].equals("CANNOT_PLUG_BOND_SLAVE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.PoolAuthDisableFailedPermissionDenied(p1, p2);
+                throw new Types.CannotPlugBondSlave(p1);
             }
-            if (ErrorDescription[0].equals("PERMISSION_DENIED"))
+            if (ErrorDescription[0].equals("VGPU_TYPE_NOT_ENABLED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.PermissionDenied(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.VgpuTypeNotEnabled(p1, p2);
             }
-            if (ErrorDescription[0].equals("SSL_VERIFY_ERROR"))
+            if (ErrorDescription[0].equals("CANNOT_FIND_OEM_BACKUP_PARTITION"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SslVerifyError(p1);
+                throw new Types.CannotFindOemBackupPartition();
             }
-            if (ErrorDescription[0].equals("SR_ATTACH_FAILED"))
+            if (ErrorDescription[0].equals("PIF_ALREADY_BONDED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SrAttachFailed(p1);
+                throw new Types.PifAlreadyBonded(p1);
             }
-            if (ErrorDescription[0].equals("SUBJECT_ALREADY_EXISTS"))
+            if (ErrorDescription[0].equals("RESTORE_INCOMPATIBLE_VERSION"))
             {
-                throw new Types.SubjectAlreadyExists();
+                throw new Types.RestoreIncompatibleVersion();
             }
-            if (ErrorDescription[0].equals("HA_LOST_STATEFILE"))
+            if (ErrorDescription[0].equals("SESSION_AUTHENTICATION_FAILED"))
             {
-                throw new Types.HaLostStatefile();
+                throw new Types.SessionAuthenticationFailed();
             }
-            if (ErrorDescription[0].equals("HA_NOT_ENABLED"))
+            if (ErrorDescription[0].equals("PIF_BOND_NEEDS_MORE_MEMBERS"))
             {
-                throw new Types.HaNotEnabled();
+                throw new Types.PifBondNeedsMoreMembers();
             }
             if (ErrorDescription[0].equals("HA_HEARTBEAT_DAEMON_STARTUP_FAILED"))
             {
                 throw new Types.HaHeartbeatDaemonStartupFailed();
             }
-            if (ErrorDescription[0].equals("SESSION_NOT_REGISTERED"))
+            if (ErrorDescription[0].equals("INVALID_VALUE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SessionNotRegistered(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.InvalidValue(p1, p2);
             }
-            if (ErrorDescription[0].equals("VM_NO_SUSPEND_SR"))
+            if (ErrorDescription[0].equals("INVALID_IP_ADDRESS_SPECIFIED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmNoSuspendSr(p1);
+                throw new Types.InvalidIpAddressSpecified(p1);
             }
-            if (ErrorDescription[0].equals("VM_HAS_TOO_MANY_SNAPSHOTS"))
+            if (ErrorDescription[0].equals("LICENSE_CANNOT_DOWNGRADE_WHILE_IN_POOL"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmHasTooManySnapshots(p1);
+                throw new Types.LicenseCannotDowngradeWhileInPool();
             }
-            if (ErrorDescription[0].equals("PATCH_APPLY_FAILED"))
+            if (ErrorDescription[0].equals("VMS_FAILED_TO_COOPERATE"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.PatchApplyFailed(p1);
+                throw new Types.VmsFailedToCooperate();
             }
-            if (ErrorDescription[0].equals("VDI_READONLY"))
+            if (ErrorDescription[0].equals("HOST_DISABLED_UNTIL_REBOOT"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VdiReadonly(p1);
+                throw new Types.HostDisabledUntilReboot(p1);
             }
-            if (ErrorDescription[0].equals("SR_FULL"))
+            if (ErrorDescription[0].equals("SYSTEM_STATUS_RETRIEVAL_FAILED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.SrFull(p1, p2);
+                throw new Types.SystemStatusRetrievalFailed(p1);
             }
-            if (ErrorDescription[0].equals("VM_REQUIRES_GPU"))
+            if (ErrorDescription[0].equals("PIF_INCOMPATIBLE_PRIMARY_ADDRESS_TYPE"))
+            {
+                throw new Types.PifIncompatiblePrimaryAddressType();
+            }
+            if (ErrorDescription[0].equals("IMPORT_ERROR_PREMATURE_EOF"))
+            {
+                throw new Types.ImportErrorPrematureEof();
+            }
+            if (ErrorDescription[0].equals("PROVISION_ONLY_ALLOWED_ON_TEMPLATE"))
+            {
+                throw new Types.ProvisionOnlyAllowedOnTemplate();
+            }
+            if (ErrorDescription[0].equals("VBD_NOT_REMOVABLE_MEDIA"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.VmRequiresGpu(p1, p2);
+                throw new Types.VbdNotRemovableMedia(p1);
             }
-            if (ErrorDescription[0].equals("VDI_NOT_AVAILABLE"))
+            if (ErrorDescription[0].equals("GPU_GROUP_CONTAINS_NO_PGPUS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VdiNotAvailable(p1);
+                throw new Types.GpuGroupContainsNoPgpus(p1);
             }
-            if (ErrorDescription[0].equals("XMLRPC_UNMARSHAL_FAILURE"))
+            if (ErrorDescription[0].equals("HA_HOST_CANNOT_SEE_PEERS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.XmlrpcUnmarshalFailure(p1, p2);
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.HaHostCannotSeePeers(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("CRL_ALREADY_EXISTS"))
+            if (ErrorDescription[0].equals("AUTH_ENABLE_FAILED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.CrlAlreadyExists(p1);
+                throw new Types.AuthEnableFailed(p1);
             }
-            if (ErrorDescription[0].equals("HOST_MASTER_CANNOT_TALK_BACK"))
+            if (ErrorDescription[0].equals("HOST_NAME_INVALID"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HostMasterCannotTalkBack(p1);
+                throw new Types.HostNameInvalid(p1);
             }
-            if (ErrorDescription[0].equals("XAPI_HOOK_FAILED"))
+            if (ErrorDescription[0].equals("WLB_XENSERVER_CONNECTION_REFUSED"))
+            {
+                throw new Types.WlbXenserverConnectionRefused();
+            }
+            if (ErrorDescription[0].equals("XEN_VSS_REQ_ERROR_NO_VOLUMES_SUPPORTED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                String p4 = ErrorDescription.length > 4 ? ErrorDescription[4] : "";
-                throw new Types.XapiHookFailed(p1, p2, p3, p4);
+                throw new Types.XenVssReqErrorNoVolumesSupported(p1, p2);
             }
-            if (ErrorDescription[0].equals("IMPORT_INCOMPATIBLE_VERSION"))
+            if (ErrorDescription[0].equals("HOST_NOT_ENOUGH_FREE_MEMORY"))
             {
-                throw new Types.ImportIncompatibleVersion();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.HostNotEnoughFreeMemory(p1, p2);
             }
-            if (ErrorDescription[0].equals("UNKNOWN_BOOTLOADER"))
+            if (ErrorDescription[0].equals("CANNOT_EVACUATE_HOST"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.UnknownBootloader(p1, p2);
+                throw new Types.CannotEvacuateHost(p1);
             }
-            if (ErrorDescription[0].equals("XEN_VSS_REQ_ERROR_PROV_NOT_LOADED"))
+            if (ErrorDescription[0].equals("VM_IS_PART_OF_AN_APPLIANCE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.XenVssReqErrorProvNotLoaded(p1, p2);
+                throw new Types.VmIsPartOfAnAppliance(p1, p2);
             }
-            if (ErrorDescription[0].equals("FEATURE_REQUIRES_HVM"))
+            if (ErrorDescription[0].equals("VDI_IS_A_PHYSICAL_DEVICE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.FeatureRequiresHvm(p1);
+                throw new Types.VdiIsAPhysicalDevice(p1);
             }
             if (ErrorDescription[0].equals("SR_VDI_LOCKING_FAILED"))
             {
                 throw new Types.SrVdiLockingFailed();
             }
-            if (ErrorDescription[0].equals("PIF_IS_PHYSICAL"))
+            if (ErrorDescription[0].equals("PIF_VLAN_EXISTS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.PifIsPhysical(p1);
+                throw new Types.PifVlanExists(p1);
             }
-            if (ErrorDescription[0].equals("MAP_DUPLICATE_KEY"))
+            if (ErrorDescription[0].equals("HOSTS_NOT_COMPATIBLE"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                String p4 = ErrorDescription.length > 4 ? ErrorDescription[4] : "";
-                throw new Types.MapDuplicateKey(p1, p2, p3, p4);
+                throw new Types.HostsNotCompatible();
             }
-            if (ErrorDescription[0].equals("MISSING_CONNECTION_DETAILS"))
+            if (ErrorDescription[0].equals("VM_IS_PROTECTED"))
             {
-                throw new Types.MissingConnectionDetails();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.VmIsProtected(p1);
             }
-            if (ErrorDescription[0].equals("XEN_VSS_REQ_ERROR_CREATING_SNAPSHOT_XML_STRING"))
+            if (ErrorDescription[0].equals("HA_POOL_IS_ENABLED_BUT_HOST_IS_DISABLED"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.XenVssReqErrorCreatingSnapshotXmlString(p1, p2);
+                throw new Types.HaPoolIsEnabledButHostIsDisabled();
             }
-            if (ErrorDescription[0].equals("BOOTLOADER_FAILED"))
+            if (ErrorDescription[0].equals("V6D_FAILURE"))
+            {
+                throw new Types.V6dFailure();
+            }
+            if (ErrorDescription[0].equals("DEVICE_DETACH_TIMEOUT"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.BootloaderFailed(p1, p2);
+                throw new Types.DeviceDetachTimeout(p1, p2);
             }
-            if (ErrorDescription[0].equals("WLB_XENSERVER_MALFORMED_RESPONSE"))
+            if (ErrorDescription[0].equals("LICENSE_PROCESSING_ERROR"))
             {
-                throw new Types.WlbXenserverMalformedResponse();
+                throw new Types.LicenseProcessingError();
             }
-            if (ErrorDescription[0].equals("GPU_GROUP_CONTAINS_VGPU"))
+            if (ErrorDescription[0].equals("PIF_VLAN_STILL_EXISTS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.GpuGroupContainsVgpu(p1);
+                throw new Types.PifVlanStillExists(p1);
             }
-            if (ErrorDescription[0].equals("POOL_AUTH_ENABLE_FAILED_DUPLICATE_HOSTNAME"))
+            if (ErrorDescription[0].equals("VM_REBOOTED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.PoolAuthEnableFailedDuplicateHostname(p1, p2);
+                throw new Types.VmRebooted(p1);
             }
-            if (ErrorDescription[0].equals("SYSTEM_STATUS_RETRIEVAL_FAILED"))
+            if (ErrorDescription[0].equals("OBJECT_NOLONGER_EXISTS"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SystemStatusRetrievalFailed(p1);
+                throw new Types.ObjectNolongerExists();
             }
-            if (ErrorDescription[0].equals("VDI_IN_USE"))
+            if (ErrorDescription[0].equals("CERTIFICATE_LIBRARY_CORRUPT"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.VdiInUse(p1, p2);
+                throw new Types.CertificateLibraryCorrupt();
             }
-            if (ErrorDescription[0].equals("HOST_NOT_LIVE"))
+            if (ErrorDescription[0].equals("DUPLICATE_VM"))
             {
-                throw new Types.HostNotLive();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.DuplicateVm(p1);
             }
             if (ErrorDescription[0].equals("CERTIFICATE_ALREADY_EXISTS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 throw new Types.CertificateAlreadyExists(p1);
             }
-            if (ErrorDescription[0].equals("SR_HAS_NO_PBDS"))
+            if (ErrorDescription[0].equals("CERTIFICATE_CORRUPT"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SrHasNoPbds(p1);
+                throw new Types.CertificateCorrupt(p1);
             }
-            if (ErrorDescription[0].equals("CANNOT_ADD_TUNNEL_TO_BOND_SLAVE"))
+            if (ErrorDescription[0].equals("SM_PLUGIN_COMMUNICATION_FAILURE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.CannotAddTunnelToBondSlave(p1);
+                throw new Types.SmPluginCommunicationFailure(p1);
             }
-            if (ErrorDescription[0].equals("INVALID_PATCH"))
+            if (ErrorDescription[0].equals("WLB_DISABLED"))
             {
-                throw new Types.InvalidPatch();
+                throw new Types.WlbDisabled();
             }
-            if (ErrorDescription[0].equals("SR_INDESTRUCTIBLE"))
+            if (ErrorDescription[0].equals("GPU_GROUP_CONTAINS_PGPU"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SrIndestructible(p1);
+                throw new Types.GpuGroupContainsPgpu(p1);
             }
-            if (ErrorDescription[0].equals("HA_ABORT_NEW_MASTER"))
+            if (ErrorDescription[0].equals("VDI_NOT_IN_MAP"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HaAbortNewMaster(p1);
+                throw new Types.VdiNotInMap(p1);
             }
-            if (ErrorDescription[0].equals("WLB_MALFORMED_RESPONSE"))
+            if (ErrorDescription[0].equals("LICENCE_RESTRICTION"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                throw new Types.WlbMalformedResponse(p1, p2, p3);
+                throw new Types.LicenceRestriction();
             }
-            if (ErrorDescription[0].equals("POOL_JOINING_HOST_MUST_HAVE_PHYSICAL_MANAGEMENT_NIC"))
+            if (ErrorDescription[0].equals("TOO_MANY_PENDING_TASKS"))
             {
-                throw new Types.PoolJoiningHostMustHavePhysicalManagementNic();
+                throw new Types.TooManyPendingTasks();
             }
-            if (ErrorDescription[0].equals("PIF_HAS_NO_V6_NETWORK_CONFIGURATION"))
+            if (ErrorDescription[0].equals("VM_SNAPSHOT_WITH_QUIESCE_TIMEOUT"))
             {
-                throw new Types.PifHasNoV6NetworkConfiguration();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.VmSnapshotWithQuiesceTimeout(p1);
             }
-            if (ErrorDescription[0].equals("VM_IS_PART_OF_AN_APPLIANCE"))
+            if (ErrorDescription[0].equals("VDI_INCOMPATIBLE_TYPE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.VmIsPartOfAnAppliance(p1, p2);
+                throw new Types.VdiIncompatibleType(p1, p2);
             }
-            if (ErrorDescription[0].equals("WLB_XENSERVER_AUTHENTICATION_FAILED"))
+            if (ErrorDescription[0].equals("VIF_IN_USE"))
             {
-                throw new Types.WlbXenserverAuthenticationFailed();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.VifInUse(p1, p2);
             }
-            if (ErrorDescription[0].equals("CANNOT_RESET_CONTROL_DOMAIN"))
+            if (ErrorDescription[0].equals("VMPP_ARCHIVE_MORE_FREQUENT_THAN_BACKUP"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.CannotResetControlDomain(p1);
+                throw new Types.VmppArchiveMoreFrequentThanBackup();
             }
-            if (ErrorDescription[0].equals("PATCH_PRECHECK_FAILED_UNKNOWN_ERROR"))
+            if (ErrorDescription[0].equals("IMPORT_INCOMPATIBLE_VERSION"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.PatchPrecheckFailedUnknownError(p1, p2);
+                throw new Types.ImportIncompatibleVersion();
             }
-            if (ErrorDescription[0].equals("HOST_CANNOT_ATTACH_NETWORK"))
+            if (ErrorDescription[0].equals("INVALID_EDITION"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.HostCannotAttachNetwork(p1, p2);
+                throw new Types.InvalidEdition(p1);
             }
-            if (ErrorDescription[0].equals("WLB_URL_INVALID"))
+            if (ErrorDescription[0].equals("AUTH_SERVICE_ERROR"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.WlbUrlInvalid(p1);
+                throw new Types.AuthServiceError(p1);
             }
-            if (ErrorDescription[0].equals("DUPLICATE_VM"))
+            if (ErrorDescription[0].equals("XEN_VSS_REQ_ERROR_ADDING_VOLUME_TO_SNAPSET_FAILED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.DuplicateVm(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.XenVssReqErrorAddingVolumeToSnapsetFailed(p1, p2);
             }
-            if (ErrorDescription[0].equals("HOST_CANNOT_DESTROY_SELF"))
+            if (ErrorDescription[0].equals("PERMISSION_DENIED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HostCannotDestroySelf(p1);
+                throw new Types.PermissionDenied(p1);
             }
-            if (ErrorDescription[0].equals("HOST_BROKEN"))
+            if (ErrorDescription[0].equals("DEVICE_ALREADY_EXISTS"))
             {
-                throw new Types.HostBroken();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.DeviceAlreadyExists(p1);
             }
-            if (ErrorDescription[0].equals("VM_CHECKPOINT_RESUME_FAILED"))
+            if (ErrorDescription[0].equals("SR_UUID_EXISTS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmCheckpointResumeFailed(p1);
+                throw new Types.SrUuidExists(p1);
             }
-            if (ErrorDescription[0].equals("VM_TOO_MANY_VCPUS"))
+            if (ErrorDescription[0].equals("VM_HAS_VGPU"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmTooManyVcpus(p1);
+                throw new Types.VmHasVgpu(p1);
             }
-            if (ErrorDescription[0].equals("HOST_IS_LIVE"))
+            if (ErrorDescription[0].equals("TOO_MANY_STORAGE_MIGRATES"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HostIsLive(p1);
+                throw new Types.TooManyStorageMigrates(p1);
             }
-            if (ErrorDescription[0].equals("IMPORT_ERROR_ATTACHED_DISKS_NOT_FOUND"))
+            if (ErrorDescription[0].equals("HA_IS_ENABLED"))
             {
-                throw new Types.ImportErrorAttachedDisksNotFound();
+                throw new Types.HaIsEnabled();
             }
-            if (ErrorDescription[0].equals("VBD_NOT_UNPLUGGABLE"))
+            if (ErrorDescription[0].equals("CANNOT_DESTROY_SYSTEM_NETWORK"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VbdNotUnpluggable(p1);
+                throw new Types.CannotDestroySystemNetwork(p1);
             }
-            if (ErrorDescription[0].equals("XEN_VSS_REQ_ERROR_CREATING_SNAPSHOT"))
+            if (ErrorDescription[0].equals("OPENVSWITCH_NOT_ACTIVE"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.XenVssReqErrorCreatingSnapshot(p1, p2);
+                throw new Types.OpenvswitchNotActive();
             }
-            if (ErrorDescription[0].equals("CANNOT_ENABLE_REDO_LOG"))
+            if (ErrorDescription[0].equals("NOT_IMPLEMENTED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.CannotEnableRedoLog(p1);
+                throw new Types.NotImplemented(p1);
             }
-            if (ErrorDescription[0].equals("CANNOT_EVACUATE_HOST"))
+            if (ErrorDescription[0].equals("VBD_NOT_UNPLUGGABLE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.CannotEvacuateHost(p1);
+                throw new Types.VbdNotUnpluggable(p1);
             }
-            if (ErrorDescription[0].equals("NO_HOSTS_AVAILABLE"))
+            if (ErrorDescription[0].equals("VM_CRASHED"))
             {
-                throw new Types.NoHostsAvailable();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.VmCrashed(p1);
             }
-            if (ErrorDescription[0].equals("DEVICE_ATTACH_TIMEOUT"))
+            if (ErrorDescription[0].equals("VM_BAD_POWER_STATE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.DeviceAttachTimeout(p1, p2);
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.VmBadPowerState(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("INVALID_DEVICE"))
+            if (ErrorDescription[0].equals("FEATURE_REQUIRES_HVM"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.InvalidDevice(p1);
+                throw new Types.FeatureRequiresHvm(p1);
             }
-            if (ErrorDescription[0].equals("PBD_EXISTS"))
+            if (ErrorDescription[0].equals("IMPORT_ERROR_UNEXPECTED_FILE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                throw new Types.PbdExists(p1, p2, p3);
+                throw new Types.ImportErrorUnexpectedFile(p1, p2);
             }
-            if (ErrorDescription[0].equals("WLB_XENSERVER_CONNECTION_REFUSED"))
+            if (ErrorDescription[0].equals("SR_NOT_EMPTY"))
             {
-                throw new Types.WlbXenserverConnectionRefused();
+                throw new Types.SrNotEmpty();
             }
-            if (ErrorDescription[0].equals("HOST_CANNOT_READ_METRICS"))
+            if (ErrorDescription[0].equals("JOINING_HOST_CANNOT_HAVE_VMS_WITH_CURRENT_OPERATIONS"))
             {
-                throw new Types.HostCannotReadMetrics();
+                throw new Types.JoiningHostCannotHaveVmsWithCurrentOperations();
             }
-            if (ErrorDescription[0].equals("VM_INCOMPATIBLE_WITH_THIS_HOST"))
+            if (ErrorDescription[0].equals("VDI_NOT_MANAGED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                throw new Types.VmIncompatibleWithThisHost(p1, p2, p3);
+                throw new Types.VdiNotManaged(p1);
             }
-            if (ErrorDescription[0].equals("NO_MORE_REDO_LOGS_ALLOWED"))
+            if (ErrorDescription[0].equals("VM_HALTED"))
             {
-                throw new Types.NoMoreRedoLogsAllowed();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.VmHalted(p1);
             }
-            if (ErrorDescription[0].equals("POOL_AUTH_ENABLE_FAILED"))
+            if (ErrorDescription[0].equals("COULD_NOT_FIND_NETWORK_INTERFACE_WITH_SPECIFIED_DEVICE_NAME_AND_MAC_ADDRESS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.PoolAuthEnableFailed(p1, p2);
+                throw new Types.CouldNotFindNetworkInterfaceWithSpecifiedDeviceNameAndMacAddress(p1, p2);
             }
-            if (ErrorDescription[0].equals("VM_SNAPSHOT_WITH_QUIESCE_NOT_SUPPORTED"))
+            if (ErrorDescription[0].equals("SR_BACKEND_FAILURE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.VmSnapshotWithQuiesceNotSupported(p1, p2);
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.SrBackendFailure(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("LICENSE_DOES_NOT_SUPPORT_POOLING"))
+            if (ErrorDescription[0].equals("RESTORE_TARGET_MISSING_DEVICE"))
             {
-                throw new Types.LicenseDoesNotSupportPooling();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.RestoreTargetMissingDevice(p1);
             }
-            if (ErrorDescription[0].equals("HOST_UNKNOWN_TO_MASTER"))
+            if (ErrorDescription[0].equals("VM_IS_TEMPLATE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HostUnknownToMaster(p1);
+                throw new Types.VmIsTemplate(p1);
             }
-            if (ErrorDescription[0].equals("WLB_CONNECTION_REFUSED"))
+            if (ErrorDescription[0].equals("HA_OPERATION_WOULD_BREAK_FAILOVER_PLAN"))
             {
-                throw new Types.WlbConnectionRefused();
+                throw new Types.HaOperationWouldBreakFailoverPlan();
             }
-            if (ErrorDescription[0].equals("VM_SNAPSHOT_WITH_QUIESCE_PLUGIN_DEOS_NOT_RESPOND"))
+            if (ErrorDescription[0].equals("VMPP_HAS_VM"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmSnapshotWithQuiescePluginDeosNotRespond(p1);
+                throw new Types.VmppHasVm();
             }
-            if (ErrorDescription[0].equals("VM_REQUIRES_SR"))
+            if (ErrorDescription[0].equals("HANDLE_INVALID"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.VmRequiresSr(p1, p2);
+                throw new Types.HandleInvalid(p1, p2);
             }
-            if (ErrorDescription[0].equals("VM_NO_CRASHDUMP_SR"))
+            if (ErrorDescription[0].equals("POOL_JOINING_HOST_MUST_HAVE_PHYSICAL_MANAGEMENT_NIC"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmNoCrashdumpSr(p1);
+                throw new Types.PoolJoiningHostMustHavePhysicalManagementNic();
             }
-            if (ErrorDescription[0].equals("HA_NOT_INSTALLED"))
+            if (ErrorDescription[0].equals("DEVICE_ALREADY_ATTACHED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HaNotInstalled(p1);
+                throw new Types.DeviceAlreadyAttached(p1);
             }
-            if (ErrorDescription[0].equals("DUPLICATE_PIF_DEVICE_NAME"))
+            if (ErrorDescription[0].equals("NOT_SUPPORTED_DURING_UPGRADE"))
+            {
+                throw new Types.NotSupportedDuringUpgrade();
+            }
+            if (ErrorDescription[0].equals("OPERATION_PARTIALLY_FAILED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.DuplicatePifDeviceName(p1);
+                throw new Types.OperationPartiallyFailed(p1);
             }
-            if (ErrorDescription[0].equals("VM_BAD_POWER_STATE"))
+            if (ErrorDescription[0].equals("OTHER_OPERATION_IN_PROGRESS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                throw new Types.VmBadPowerState(p1, p2, p3);
+                throw new Types.OtherOperationInProgress(p1, p2);
             }
-            if (ErrorDescription[0].equals("WLB_DISABLED"))
+            if (ErrorDescription[0].equals("PIF_CANNOT_BOND_CROSS_HOST"))
             {
-                throw new Types.WlbDisabled();
+                throw new Types.PifCannotBondCrossHost();
             }
-            if (ErrorDescription[0].equals("VM_HOST_INCOMPATIBLE_VERSION"))
+            if (ErrorDescription[0].equals("PATCH_PRECHECK_FAILED_WRONG_SERVER_VERSION"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.VmHostIncompatibleVersion(p1, p2);
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.PatchPrecheckFailedWrongServerVersion(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("POOL_JOINING_EXTERNAL_AUTH_MISMATCH"))
-            {
-                throw new Types.PoolJoiningExternalAuthMismatch();
-            }
-            if (ErrorDescription[0].equals("DISK_VBD_MUST_BE_READWRITE_FOR_HVM"))
+            if (ErrorDescription[0].equals("CANNOT_PLUG_VIF"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.DiskVbdMustBeReadwriteForHvm(p1);
+                throw new Types.CannotPlugVif(p1);
             }
-            if (ErrorDescription[0].equals("VM_BIOS_STRINGS_ALREADY_SET"))
+            if (ErrorDescription[0].equals("POOL_AUTH_ENABLE_FAILED_DOMAIN_LOOKUP_FAILED"))
             {
-                throw new Types.VmBiosStringsAlreadySet();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.PoolAuthEnableFailedDomainLookupFailed(p1, p2);
             }
-            if (ErrorDescription[0].equals("WLB_XENSERVER_UNKNOWN_HOST"))
+            if (ErrorDescription[0].equals("NOT_ALLOWED_ON_OEM_EDITION"))
             {
-                throw new Types.WlbXenserverUnknownHost();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.NotAllowedOnOemEdition(p1);
             }
-            if (ErrorDescription[0].equals("HA_HOST_CANNOT_ACCESS_STATEFILE"))
+            if (ErrorDescription[0].equals("PATCH_PRECHECK_FAILED_UNKNOWN_ERROR"))
             {
-                throw new Types.HaHostCannotAccessStatefile();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.PatchPrecheckFailedUnknownError(p1, p2);
             }
-            if (ErrorDescription[0].equals("VM_FAILED_SHUTDOWN_ACKNOWLEDGMENT"))
+            if (ErrorDescription[0].equals("CRL_CORRUPT"))
             {
-                throw new Types.VmFailedShutdownAcknowledgment();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.CrlCorrupt(p1);
             }
-            if (ErrorDescription[0].equals("AUTH_SERVICE_ERROR"))
+            if (ErrorDescription[0].equals("POOL_JOINING_EXTERNAL_AUTH_MISMATCH"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.AuthServiceError(p1);
+                throw new Types.PoolJoiningExternalAuthMismatch();
             }
-            if (ErrorDescription[0].equals("HOST_IN_EMERGENCY_MODE"))
+            if (ErrorDescription[0].equals("JOINING_HOST_SERVICE_FAILED"))
             {
-                throw new Types.HostInEmergencyMode();
+                throw new Types.JoiningHostServiceFailed();
             }
-            if (ErrorDescription[0].equals("HOST_DISABLED_UNTIL_REBOOT"))
+            if (ErrorDescription[0].equals("CHANGE_PASSWORD_REJECTED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HostDisabledUntilReboot(p1);
+                throw new Types.ChangePasswordRejected(p1);
             }
-            if (ErrorDescription[0].equals("DEFAULT_SR_NOT_FOUND"))
+            if (ErrorDescription[0].equals("PIF_UNMANAGED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.DefaultSrNotFound(p1);
+                throw new Types.PifUnmanaged(p1);
             }
-            if (ErrorDescription[0].equals("DEVICE_ALREADY_EXISTS"))
+            if (ErrorDescription[0].equals("VM_DUPLICATE_VBD_DEVICE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.DeviceAlreadyExists(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.VmDuplicateVbdDevice(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("SR_NOT_SHARABLE"))
+            if (ErrorDescription[0].equals("RESTORE_SCRIPT_FAILED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.SrNotSharable(p1, p2);
+                throw new Types.RestoreScriptFailed(p1);
             }
-            if (ErrorDescription[0].equals("VM_HAS_CHECKPOINT"))
+            if (ErrorDescription[0].equals("WLB_XENSERVER_TIMEOUT"))
+            {
+                throw new Types.WlbXenserverTimeout();
+            }
+            if (ErrorDescription[0].equals("MAC_DOES_NOT_EXIST"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmHasCheckpoint(p1);
+                throw new Types.MacDoesNotExist(p1);
             }
-            if (ErrorDescription[0].equals("SM_PLUGIN_COMMUNICATION_FAILURE"))
+            if (ErrorDescription[0].equals("HOST_ITS_OWN_SLAVE"))
+            {
+                throw new Types.HostItsOwnSlave();
+            }
+            if (ErrorDescription[0].equals("AUTH_DISABLE_FAILED_WRONG_CREDENTIALS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SmPluginCommunicationFailure(p1);
+                throw new Types.AuthDisableFailedWrongCredentials(p1);
+            }
+            if (ErrorDescription[0].equals("HA_TOO_FEW_HOSTS"))
+            {
+                throw new Types.HaTooFewHosts();
             }
             if (ErrorDescription[0].equals("VM_ASSIGNED_TO_PROTECTION_POLICY"))
             {
@@ -810,244 +812,283 @@ public class Types
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
                 throw new Types.VmAssignedToProtectionPolicy(p1, p2);
             }
-            if (ErrorDescription[0].equals("RBAC_PERMISSION_DENIED"))
+            if (ErrorDescription[0].equals("MAP_DUPLICATE_KEY"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.RbacPermissionDenied(p1, p2);
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                String p4 = ErrorDescription.length > 4 ? ErrorDescription[4] : "";
+                throw new Types.MapDuplicateKey(p1, p2, p3, p4);
             }
-            if (ErrorDescription[0].equals("AUTH_DISABLE_FAILED_PERMISSION_DENIED"))
+            if (ErrorDescription[0].equals("HOST_MASTER_CANNOT_TALK_BACK"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.AuthDisableFailedPermissionDenied(p1);
+                throw new Types.HostMasterCannotTalkBack(p1);
             }
-            if (ErrorDescription[0].equals("LICENSE_CANNOT_DOWNGRADE_WHILE_IN_POOL"))
+            if (ErrorDescription[0].equals("VM_CHECKPOINT_RESUME_FAILED"))
             {
-                throw new Types.LicenseCannotDowngradeWhileInPool();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.VmCheckpointResumeFailed(p1);
             }
-            if (ErrorDescription[0].equals("TOO_MANY_PENDING_TASKS"))
+            if (ErrorDescription[0].equals("CRL_NAME_INVALID"))
             {
-                throw new Types.TooManyPendingTasks();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.CrlNameInvalid(p1);
             }
-            if (ErrorDescription[0].equals("VM_SNAPSHOT_WITH_QUIESCE_TIMEOUT"))
+            if (ErrorDescription[0].equals("EVENT_FROM_TOKEN_PARSE_FAILURE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmSnapshotWithQuiesceTimeout(p1);
+                throw new Types.EventFromTokenParseFailure(p1);
             }
-            if (ErrorDescription[0].equals("HA_CANNOT_CHANGE_BOND_STATUS_OF_MGMT_IFACE"))
+            if (ErrorDescription[0].equals("CANNOT_ENABLE_REDO_LOG"))
             {
-                throw new Types.HaCannotChangeBondStatusOfMgmtIface();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.CannotEnableRedoLog(p1);
             }
-            if (ErrorDescription[0].equals("PATCH_ALREADY_APPLIED"))
+            if (ErrorDescription[0].equals("PIF_DEVICE_NOT_FOUND"))
+            {
+                throw new Types.PifDeviceNotFound();
+            }
+            if (ErrorDescription[0].equals("LICENSE_DOES_NOT_SUPPORT_POOLING"))
+            {
+                throw new Types.LicenseDoesNotSupportPooling();
+            }
+            if (ErrorDescription[0].equals("OPERATION_BLOCKED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.PatchAlreadyApplied(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.OperationBlocked(p1, p2);
             }
-            if (ErrorDescription[0].equals("SR_UUID_EXISTS"))
+            if (ErrorDescription[0].equals("VM_NO_CRASHDUMP_SR"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SrUuidExists(p1);
+                throw new Types.VmNoCrashdumpSr(p1);
             }
-            if (ErrorDescription[0].equals("AUTH_ENABLE_FAILED_DOMAIN_LOOKUP_FAILED"))
+            if (ErrorDescription[0].equals("HOST_EVACUATE_IN_PROGRESS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.AuthEnableFailedDomainLookupFailed(p1);
+                throw new Types.HostEvacuateInProgress(p1);
             }
-            if (ErrorDescription[0].equals("PATCH_PRECHECK_FAILED_WRONG_SERVER_BUILD"))
+            if (ErrorDescription[0].equals("SYSTEM_STATUS_MUST_USE_TAR_ON_OEM"))
+            {
+                throw new Types.SystemStatusMustUseTarOnOem();
+            }
+            if (ErrorDescription[0].equals("HA_NO_PLAN"))
+            {
+                throw new Types.HaNoPlan();
+            }
+            if (ErrorDescription[0].equals("HOST_UNKNOWN_TO_MASTER"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                throw new Types.PatchPrecheckFailedWrongServerBuild(p1, p2, p3);
+                throw new Types.HostUnknownToMaster(p1);
             }
-            if (ErrorDescription[0].equals("INVALID_FEATURE_STRING"))
+            if (ErrorDescription[0].equals("AUTH_ENABLE_FAILED_WRONG_CREDENTIALS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.InvalidFeatureString(p1);
+                throw new Types.AuthEnableFailedWrongCredentials(p1);
             }
-            if (ErrorDescription[0].equals("WLB_NOT_INITIALIZED"))
+            if (ErrorDescription[0].equals("OPERATION_NOT_ALLOWED"))
             {
-                throw new Types.WlbNotInitialized();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.OperationNotAllowed(p1);
             }
-            if (ErrorDescription[0].equals("OPERATION_BLOCKED"))
+            if (ErrorDescription[0].equals("USER_IS_NOT_LOCAL_SUPERUSER"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.OperationBlocked(p1, p2);
+                throw new Types.UserIsNotLocalSuperuser(p1);
             }
-            if (ErrorDescription[0].equals("PROVISION_ONLY_ALLOWED_ON_TEMPLATE"))
+            if (ErrorDescription[0].equals("HA_FAILED_TO_FORM_LIVESET"))
             {
-                throw new Types.ProvisionOnlyAllowedOnTemplate();
+                throw new Types.HaFailedToFormLiveset();
             }
-            if (ErrorDescription[0].equals("VM_SHUTDOWN_TIMEOUT"))
+            if (ErrorDescription[0].equals("WLB_CONNECTION_RESET"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.VmShutdownTimeout(p1, p2);
+                throw new Types.WlbConnectionReset();
             }
-            if (ErrorDescription[0].equals("ROLE_ALREADY_EXISTS"))
+            if (ErrorDescription[0].equals("HOST_CD_DRIVE_EMPTY"))
             {
-                throw new Types.RoleAlreadyExists();
+                throw new Types.HostCdDriveEmpty();
             }
-            if (ErrorDescription[0].equals("NETWORK_CONTAINS_PIF"))
+            if (ErrorDescription[0].equals("EVENTS_LOST"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.NetworkContainsPif(p1);
+                throw new Types.EventsLost();
             }
-            if (ErrorDescription[0].equals("COULD_NOT_FIND_NETWORK_INTERFACE_WITH_SPECIFIED_DEVICE_NAME_AND_MAC_ADDRESS"))
+            if (ErrorDescription[0].equals("PROVISION_FAILED_OUT_OF_SPACE"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.CouldNotFindNetworkInterfaceWithSpecifiedDeviceNameAndMacAddress(p1, p2);
+                throw new Types.ProvisionFailedOutOfSpace();
             }
-            if (ErrorDescription[0].equals("JOINING_HOST_SERVICE_FAILED"))
+            if (ErrorDescription[0].equals("LICENSE_FILE_DEPRECATED"))
             {
-                throw new Types.JoiningHostServiceFailed();
+                throw new Types.LicenseFileDeprecated();
             }
-            if (ErrorDescription[0].equals("VDI_MISSING"))
+            if (ErrorDescription[0].equals("SUBJECT_ALREADY_EXISTS"))
+            {
+                throw new Types.SubjectAlreadyExists();
+            }
+            if (ErrorDescription[0].equals("VM_HOST_INCOMPATIBLE_VERSION"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.VdiMissing(p1, p2);
+                throw new Types.VmHostIncompatibleVersion(p1, p2);
             }
-            if (ErrorDescription[0].equals("VBD_TRAY_LOCKED"))
+            if (ErrorDescription[0].equals("HOST_BROKEN"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VbdTrayLocked(p1);
+                throw new Types.HostBroken();
             }
-            if (ErrorDescription[0].equals("POOL_AUTH_ENABLE_FAILED_PERMISSION_DENIED"))
+            if (ErrorDescription[0].equals("NOT_IN_EMERGENCY_MODE"))
+            {
+                throw new Types.NotInEmergencyMode();
+            }
+            if (ErrorDescription[0].equals("ROLE_NOT_FOUND"))
+            {
+                throw new Types.RoleNotFound();
+            }
+            if (ErrorDescription[0].equals("MAC_STILL_EXISTS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.PoolAuthEnableFailedPermissionDenied(p1, p2);
+                throw new Types.MacStillExists(p1);
             }
-            if (ErrorDescription[0].equals("UUID_INVALID"))
+            if (ErrorDescription[0].equals("HA_HOST_IS_ARMED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.UuidInvalid(p1, p2);
+                throw new Types.HaHostIsArmed(p1);
             }
-            if (ErrorDescription[0].equals("LICENCE_RESTRICTION"))
+            if (ErrorDescription[0].equals("JOINING_HOST_CANNOT_HAVE_RUNNING_VMS"))
             {
-                throw new Types.LicenceRestriction();
+                throw new Types.JoiningHostCannotHaveRunningVms();
             }
-            if (ErrorDescription[0].equals("VIF_IN_USE"))
+            if (ErrorDescription[0].equals("DOMAIN_BUILDER_ERROR"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.VifInUse(p1, p2);
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.DomainBuilderError(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("ONLY_ALLOWED_ON_OEM_EDITION"))
+            if (ErrorDescription[0].equals("HA_CONSTRAINT_VIOLATION_NETWORK_NOT_SHARED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.OnlyAllowedOnOemEdition(p1);
+                throw new Types.HaConstraintViolationNetworkNotShared(p1);
             }
-            if (ErrorDescription[0].equals("VDI_IS_A_PHYSICAL_DEVICE"))
+            if (ErrorDescription[0].equals("HOST_CANNOT_DESTROY_SELF"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VdiIsAPhysicalDevice(p1);
-            }
-            if (ErrorDescription[0].equals("LICENSE_PROCESSING_ERROR"))
-            {
-                throw new Types.LicenseProcessingError();
+                throw new Types.HostCannotDestroySelf(p1);
             }
-            if (ErrorDescription[0].equals("ILLEGAL_VBD_DEVICE"))
+            if (ErrorDescription[0].equals("WLB_INTERNAL_ERROR"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.IllegalVbdDevice(p1, p2);
+                throw new Types.WlbInternalError();
             }
-            if (ErrorDescription[0].equals("CRL_DOES_NOT_EXIST"))
+            if (ErrorDescription[0].equals("FIELD_TYPE_ERROR"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.CrlDoesNotExist(p1);
+                throw new Types.FieldTypeError(p1);
             }
-            if (ErrorDescription[0].equals("TASK_CANCELLED"))
+            if (ErrorDescription[0].equals("DEVICE_ALREADY_DETACHED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.TaskCancelled(p1);
+                throw new Types.DeviceAlreadyDetached(p1);
             }
-            if (ErrorDescription[0].equals("VM_CRASHED"))
+            if (ErrorDescription[0].equals("GPU_GROUP_CONTAINS_VGPU"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmCrashed(p1);
+                throw new Types.GpuGroupContainsVgpu(p1);
             }
-            if (ErrorDescription[0].equals("POOL_AUTH_ENABLE_FAILED_DOMAIN_LOOKUP_FAILED"))
+            if (ErrorDescription[0].equals("DEVICE_DETACH_REJECTED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.PoolAuthEnableFailedDomainLookupFailed(p1, p2);
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.DeviceDetachRejected(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("HA_SHOULD_BE_FENCED"))
+            if (ErrorDescription[0].equals("SR_UNKNOWN_DRIVER"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HaShouldBeFenced(p1);
+                throw new Types.SrUnknownDriver(p1);
             }
-            if (ErrorDescription[0].equals("VM_UNSAFE_BOOT"))
+            if (ErrorDescription[0].equals("HOSTS_NOT_HOMOGENEOUS"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmUnsafeBoot(p1);
+                throw new Types.HostsNotHomogeneous(p1);
             }
-            if (ErrorDescription[0].equals("PIF_HAS_NO_NETWORK_CONFIGURATION"))
+            if (ErrorDescription[0].equals("VDI_CONTAINS_METADATA_OF_THIS_POOL"))
             {
-                throw new Types.PifHasNoNetworkConfiguration();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.VdiContainsMetadataOfThisPool(p1, p2);
             }
-            if (ErrorDescription[0].equals("TOO_BUSY"))
+            if (ErrorDescription[0].equals("SR_NOT_SHARABLE"))
             {
-                throw new Types.TooBusy();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.SrNotSharable(p1, p2);
             }
-            if (ErrorDescription[0].equals("VALUE_NOT_SUPPORTED"))
+            if (ErrorDescription[0].equals("POOL_AUTH_ENABLE_FAILED_DUPLICATE_HOSTNAME"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                throw new Types.ValueNotSupported(p1, p2, p3);
+                throw new Types.PoolAuthEnableFailedDuplicateHostname(p1, p2);
             }
-            if (ErrorDescription[0].equals("SESSION_INVALID"))
+            if (ErrorDescription[0].equals("HA_NOT_ENABLED"))
+            {
+                throw new Types.HaNotEnabled();
+            }
+            if (ErrorDescription[0].equals("SR_ATTACH_FAILED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SessionInvalid(p1);
+                throw new Types.SrAttachFailed(p1);
             }
-            if (ErrorDescription[0].equals("HA_CONSTRAINT_VIOLATION_NETWORK_NOT_SHARED"))
+            if (ErrorDescription[0].equals("MESSAGE_PARAMETER_COUNT_MISMATCH"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HaConstraintViolationNetworkNotShared(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.MessageParameterCountMismatch(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("HA_FAILED_TO_FORM_LIVESET"))
+            if (ErrorDescription[0].equals("VM_MEMORY_SIZE_TOO_LOW"))
             {
-                throw new Types.HaFailedToFormLiveset();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.VmMemorySizeTooLow(p1);
             }
-            if (ErrorDescription[0].equals("PIF_CANNOT_BOND_CROSS_HOST"))
+            if (ErrorDescription[0].equals("POOL_JOINING_HOST_MUST_HAVE_SAME_PRODUCT_VERSION"))
             {
-                throw new Types.PifCannotBondCrossHost();
+                throw new Types.PoolJoiningHostMustHaveSameProductVersion();
             }
-            if (ErrorDescription[0].equals("EVENT_FROM_TOKEN_PARSE_FAILURE"))
+            if (ErrorDescription[0].equals("VM_REQUIRES_IOMMU"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.EventFromTokenParseFailure(p1);
+                throw new Types.VmRequiresIommu(p1);
             }
-            if (ErrorDescription[0].equals("SR_REQUIRES_UPGRADE"))
+            if (ErrorDescription[0].equals("POOL_AUTH_ENABLE_FAILED_PERMISSION_DENIED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SrRequiresUpgrade(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.PoolAuthEnableFailedPermissionDenied(p1, p2);
             }
-            if (ErrorDescription[0].equals("CERTIFICATE_DOES_NOT_EXIST"))
+            if (ErrorDescription[0].equals("VM_REQUIRES_VDI"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.CertificateDoesNotExist(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.VmRequiresVdi(p1, p2);
             }
-            if (ErrorDescription[0].equals("HA_OPERATION_WOULD_BREAK_FAILOVER_PLAN"))
+            if (ErrorDescription[0].equals("JOINING_HOST_CONNECTION_FAILED"))
             {
-                throw new Types.HaOperationWouldBreakFailoverPlan();
+                throw new Types.JoiningHostConnectionFailed();
             }
-            if (ErrorDescription[0].equals("CANNOT_FETCH_PATCH"))
+            if (ErrorDescription[0].equals("NETWORK_ALREADY_CONNECTED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.CannotFetchPatch(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.NetworkAlreadyConnected(p1, p2);
             }
-            if (ErrorDescription[0].equals("CANNOT_FIND_PATCH"))
+            if (ErrorDescription[0].equals("HOST_HAS_RESIDENT_VMS"))
             {
-                throw new Types.CannotFindPatch();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.HostHasResidentVms(p1);
+            }
+            if (ErrorDescription[0].equals("SESSION_NOT_REGISTERED"))
+            {
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.SessionNotRegistered(p1);
             }
             if (ErrorDescription[0].equals("DB_UNIQUENESS_CONSTRAINT_VIOLATION"))
             {
@@ -1056,477 +1097,470 @@ public class Types
                 String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
                 throw new Types.DbUniquenessConstraintViolation(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("VM_REQUIRES_NETWORK"))
+            if (ErrorDescription[0].equals("SR_INDESTRUCTIBLE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.VmRequiresNetwork(p1, p2);
+                throw new Types.SrIndestructible(p1);
             }
-            if (ErrorDescription[0].equals("VBD_NOT_EMPTY"))
+            if (ErrorDescription[0].equals("WLB_XENSERVER_MALFORMED_RESPONSE"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VbdNotEmpty(p1);
+                throw new Types.WlbXenserverMalformedResponse();
             }
-            if (ErrorDescription[0].equals("HOST_NOT_ENOUGH_FREE_MEMORY"))
+            if (ErrorDescription[0].equals("VDI_NOT_AVAILABLE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.HostNotEnoughFreeMemory(p1, p2);
+                throw new Types.VdiNotAvailable(p1);
             }
-            if (ErrorDescription[0].equals("VM_MIGRATE_FAILED"))
+            if (ErrorDescription[0].equals("SR_FULL"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                String p4 = ErrorDescription.length > 4 ? ErrorDescription[4] : "";
-                throw new Types.VmMigrateFailed(p1, p2, p3, p4);
+                throw new Types.SrFull(p1, p2);
             }
-            if (ErrorDescription[0].equals("SR_OPERATION_NOT_SUPPORTED"))
+            if (ErrorDescription[0].equals("CANNOT_FETCH_PATCH"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.SrOperationNotSupported(p1);
+                throw new Types.CannotFetchPatch(p1);
             }
-            if (ErrorDescription[0].equals("DEVICE_NOT_ATTACHED"))
+            if (ErrorDescription[0].equals("HOST_IN_EMERGENCY_MODE"))
             {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.DeviceNotAttached(p1);
+                throw new Types.HostInEmergencyMode();
             }
-            if (ErrorDescription[0].equals("HOST_DISABLED"))
+            if (ErrorDescription[0].equals("IMPORT_ERROR_SOME_CHECKSUMS_FAILED"))
+            {
+                throw new Types.ImportErrorSomeChecksumsFailed();
+            }
+            if (ErrorDescription[0].equals("XENAPI_MISSING_PLUGIN"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HostDisabled(p1);
+                throw new Types.XenapiMissingPlugin(p1);
             }
-            if (ErrorDescription[0].equals("SYSTEM_STATUS_MUST_USE_TAR_ON_OEM"))
+            if (ErrorDescription[0].equals("AUTH_ALREADY_ENABLED"))
             {
-                throw new Types.SystemStatusMustUseTarOnOem();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.AuthAlreadyEnabled(p1, p2);
             }
-            if (ErrorDescription[0].equals("XEN_VSS_REQ_ERROR_PREPARING_WRITERS"))
+            if (ErrorDescription[0].equals("VALUE_NOT_SUPPORTED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.XenVssReqErrorPreparingWriters(p1, p2);
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.ValueNotSupported(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("AUTH_ENABLE_FAILED"))
+            if (ErrorDescription[0].equals("TRANSPORT_PIF_NOT_CONFIGURED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.AuthEnableFailed(p1);
+                throw new Types.TransportPifNotConfigured(p1);
             }
-            if (ErrorDescription[0].equals("JOINING_HOST_CANNOT_CONTAIN_SHARED_SRS"))
+            if (ErrorDescription[0].equals("PATCH_PRECHECK_FAILED_VM_RUNNING"))
             {
-                throw new Types.JoiningHostCannotContainSharedSrs();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.PatchPrecheckFailedVmRunning(p1);
             }
-            if (ErrorDescription[0].equals("VM_NO_VCPUS"))
+            if (ErrorDescription[0].equals("SR_HAS_PBD"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmNoVcpus(p1);
+                throw new Types.SrHasPbd(p1);
             }
-            if (ErrorDescription[0].equals("INVALID_PATCH_WITH_LOG"))
+            if (ErrorDescription[0].equals("INVALID_DEVICE"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.InvalidPatchWithLog(p1);
+                throw new Types.InvalidDevice(p1);
             }
-            if (ErrorDescription[0].equals("SR_DEVICE_IN_USE"))
+            if (ErrorDescription[0].equals("VGPU_TYPE_NOT_COMPATIBLE_WITH_RUNNING_TYPE"))
             {
-                throw new Types.SrDeviceInUse();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
+                throw new Types.VgpuTypeNotCompatibleWithRunningType(p1, p2, p3);
             }
-            if (ErrorDescription[0].equals("HOST_CD_DRIVE_EMPTY"))
+            if (ErrorDescription[0].equals("ACTIVATION_WHILE_NOT_FREE"))
             {
-                throw new Types.HostCdDriveEmpty();
+                throw new Types.ActivationWhileNotFree();
             }
-            if (ErrorDescription[0].equals("HA_HOST_IS_ARMED"))
+            if (ErrorDescription[0].equals("VDI_READONLY"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HaHostIsArmed(p1);
+                throw new Types.VdiReadonly(p1);
             }
-            if (ErrorDescription[0].equals("EVENT_SUBSCRIPTION_PARSE_FAILURE"))
+            if (ErrorDescription[0].equals("VDI_IS_NOT_ISO"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.EventSubscriptionParseFailure(p1);
+                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
+                throw new Types.VdiIsNotIso(p1, p2);
             }
-            if (ErrorDescription[0].equals("LICENSE_EXPIRED"))
+            if (ErrorDescription[0].equals("HOST_DISABLED"))
             {
-                throw new Types.LicenseExpired();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.HostDisabled(p1);
             }
-            if (ErrorDescription[0].equals("SESSION_AUTHENTICATION_FAILED"))
+            if (ErrorDescription[0].equals("WLB_CONNECTION_REFUSED"))
             {
-                throw new Types.SessionAuthenticationFailed();
+                throw new Types.WlbConnectionRefused();
             }
-            if (ErrorDescription[0].equals("PIF_IS_VLAN"))
+            if (ErrorDescription[0].equals("VBD_NOT_EMPTY"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.PifIsVlan(p1);
+                throw new Types.VbdNotEmpty(p1);
             }
-            if (ErrorDescription[0].equals("VMPP_ARCHIVE_MORE_FREQUENT_THAN_BACKUP"))
+            if (ErrorDescription[0].equals("CANNOT_FIND_STATE_PARTITION"))
             {
-                throw new Types.VmppArchiveMoreFrequentThanBackup();
+                throw new Types.CannotFindStatePartition();
             }
-            if (ErrorDescription[0].equals("V6D_FAILURE"))
+            if (ErrorDescription[0].equals("INTERFACE_HAS_NO_IP"))
             {
-                throw new Types.V6dFailure();
+                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
+                throw new Types.InterfaceHasNoIp(p1);
             }
-            if (ErrorDescription[0].equals("JOINING_HOST_CANNOT_BE_MASTER_OF_OTHER_HOSTS"))
+            if (ErrorDescription[0].equals("JOINING_HOST_CANNOT_HAVE_RUNNING_OR_SUSPENDED_VMS"))
             {
-                throw new Types.JoiningHostCannotBeMasterOfOtherHosts();
+                throw new Types.JoiningHostCannotHaveRunningOrSuspendedVms();
             }
-            if (ErrorDescription[0].equals("HOST_HAS_RESIDENT_VMS"))
+            if (ErrorDescription[0].equals("AUTH_ENABLE_FAILED_DOMAIN_LOOKUP_FAILED"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.HostHasResidentVms(p1);
+                throw new Types.AuthEnableFailedDomainLookupFailed(p1);
             }
-            if (ErrorDescription[0].equals("VM_CHECKPOINT_SUSPEND_FAILED"))
+            if (ErrorDescription[0].equals("INVALID_FEATURE_STRING"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.VmCheckpointSuspendFailed(p1);
+                throw new Types.InvalidFeatureString(p1);
             }
-            if (ErrorDescription[0].equals("PIF_IS_MANAGEMENT_INTERFACE"))
+            if (ErrorDescription[0].equals("CANNOT_CONTACT_HOST"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.PifIsManagementInterface(p1);
+                throw new Types.CannotContactHost(p1);
             }
             if (ErrorDescription[0].equals("MAC_INVALID"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 throw new Types.MacInvalid(p1);
             }
-            if (ErrorDescription[0].equals("XEN_VSS_REQ_ERROR_START_SNAPSHOT_SET_FAILED"))
-            {
-                String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                throw new Types.XenVssReqErrorStartSnapshotSetFailed(p1, p2);
-            }
             if (ErrorDescription[0].equals("VBD_IS_EMPTY"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 throw new Types.VbdIsEmpty(p1);
             }
-            if (ErrorDescription[0].equals("PATCH_PRECHECK_FAILED_WRONG_SERVER_VERSION"))
+            if (ErrorDescription[0].equals("POOL_AUTH_ENABLE_FAILED_INVALID_OU"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
                 String p2 = ErrorDescription.length > 2 ? ErrorDescription[2] : "";
-                String p3 = ErrorDescription.length > 3 ? ErrorDescription[3] : "";
-                throw new Types.PatchPrecheckFailedWrongServerVersion(p1, p2, p3);
-            }
-            if (ErrorDescription[0].equals("CANNOT_FIND_STATE_PARTITION"))
-            {
-                throw new Types.CannotFindStatePartition();
-            }
-            if (ErrorDescription[0].equals("WLB_AUTHENTICATION_FAILED"))
-            {
-                throw new Types.WlbAuthenticationFailed();
+                throw new Types.PoolAuthEnableFailedInvalidOu(p1, p2);
             }
-            if (ErrorDescription[0].equals("AUTH_UNKNOWN_TYPE"))
+            if (ErrorDescription[0].equals("MESSAGE_METHOD_UNKNOWN"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.AuthUnknownType(p1);
-            }
-            if (ErrorDescription[0].equals("NOT_IN_EMERGENCY_MODE"))
-            {
-                throw new Types.NotInEmergencyMode();
+                throw new Types.MessageMethodUnknown(p1);
             }
-            if (ErrorDescription[0].equals("AUTH_DISABLE_FAILED"))
+            if (ErrorDescription[0].equals("PIF_DOES_NOT_ALLOW_UNPLUG"))
             {
                 String p1 = ErrorDescription.length > 1 ? ErrorDescription[1] : "";
-                throw new Types.AuthDisableFailed(p1);
+  

<TRUNCATED>

Mime
View raw message