Module: XenApi::Errors
- Defined in:
- lib/xenapi/errors.rb
Overview
:nodoc:
Defined Under Namespace
Classes: BootloaderFailed, DeviceAlreadyDetached, DeviceDetachRejected, EventsLost, GenericError, HAOperationWouldBreakFailoverPlan, HostNameInvalid, HostNotEnoughFreeMemory, IsTunnelAccessPIF, JoiningHostCannotContainSharedSRs, LicenceRestriction, LicenseProcessingError, NoHostsAvailable, OpenvswitchNotActive, OperationNotAllowed, OtherOperationInProgress, PIFIsPhysical, PIFTunnelStillExists, SRFull, SRHasPDB, SROperationNotSupported, SRUnknownDriver, SessionAuthenticationFailed, SessionNotRegistered, TransportPIFNotConfigured, UnknownBootloader, VBDIsEmpty, VBDNotEmpty, VBDNotRemovableMedia, VMBadPowerState, VMCheckpointResumeFailed, VMCheckpointSuspendFailed, VMHvmRequired, VMIsTemplate, VMMigrateFailed, VMMissingPVDrivers, VMRequiresSR, VMRevertFailed, VMSnapshotWithQuiesceFailed, VMSnapshotWithQuiesceNotSupported, VMSnapshotWithQuiescePluginDoesNotRespond, VMSnapshotWithQuiesceTimeout, VlanTagInvalid
Class Method Summary collapse
-
.exception_class_from_desc(desc) ⇒ Class
Returns the class for the exception appropriate for the error description given.
Class Method Details
.exception_class_from_desc(desc) ⇒ Class
Returns the class for the exception appropriate for the error description given
360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 |
# File 'lib/xenapi/errors.rb', line 360 def self.exception_class_from_desc(desc) case desc when 'BOOTLOADER_FAILED' BootloaderFailed when 'DEVICE_ALREADY_DETACHED' DeviceAlreadyDetached when 'DEVICE_DETACH_REJECTED' DeviceDetachRejected when 'EVENTS_LOST' EventsLost when 'HA_OPERATION_WOULD_BREAK_FAILOVER_PLAN' HAOperationWouldBreakFailoverPlan when 'HOST_NAME_INVALID' HostNameInvalid when 'HOST_NOT_ENOUGH_FREE_MEMORY' HostNotEnoughFreeMemory when 'IS_TUNNEL_ACCESS_PIF' IsTunnelAccessPIF when 'JOINING_HOST_CANNOT_CONTAIN_SHARED_SRS' JoiningHostCannotContainSharedSRs when 'LICENCE_RESTRICTION' LicenceRestriction when 'LICENSE_PROCESSING_ERROR' LicenseProcessingError when 'NO_HOSTS_AVAILABLE' NoHostsAvailable when 'OPENVSWITCH_NOT_ACTIVE' OpenvswitchNotActive when 'OPERATION_NOT_ALLOWED' OperationNotAllowed when 'OTHER_OPERATION_IN_PROGRESS' OtherOperationInProgress when 'PIF_IS_PHYSICAL' PIFIsPhysical when 'PIF_TUNNEL_STILL_EXISTS' PIFTunnelStillExists when 'SESSION_AUTHENTICATION_FAILED' SessionAuthenticationFailed when 'SESSION_NOT_REGISTERED' SessionNotRegistered when 'SR_FULL' SRFull when 'SR_HAS_PDB' SRHasPDB when 'SR_OPERATION_NOT_SUPPORTED' SROperationNotSupported when 'SR_UNKNOWN_DRIVER' SRUnknownDriver when 'TRANSPORT_PIF_NOT_CONFIGURED' TransportPIFNotConfigured when 'UNKNOWN_BOOTLOADER' UnknownBootloader when 'VBD_IS_EMPTY' VBDIsEmpty when 'VBD_NOT_EMPTY' VBDNotEmpty when 'VBD_NOT_REMOVABLE_MEDIA' VBDNotRemovableMedia when 'VLAN_TAG_INVALID' VlanTagInvalid when 'VM_BAD_POWER_STATE' VMBadPowerState when 'VM_CHECKPOINT_RESUME_FAILED' VMCheckpointResumeFailed when 'VM_CHECKPOINT_SUSPEND_FAILED' VMCheckpointSuspendFailed when 'VM_HVM_REQUIRED' VMHVMRequired when 'VM_IS_TEMPLATE' VMIsTemplate when 'VM_MIGRATE_FAILED' VMMigrateFailed when 'VM_MISSING_PV_DRIVERS' VMMissingPVDrivers when 'VM_REQUIRES_SR' VMRequiresSR when 'VM_REVERT_FAILED' VMRevertFailed when 'VM_SNAPSHOT_WITH_QUIESCE_FAILED' VMSnapshotWithQuiesceFailed when 'VM_SNAPSHOT_WITH_QUIESCE_NOT_SUPPORTED' VMSnapshotWithQuiesceNotSupported when 'VM_SNAPSHOT_WITH_QUIESCE_PLUGIN_DOES_NOT_RESPOND' VMSnapshotWithQuiescePluginDoesNotRespond when 'VM_SNAPSHOT_WITH_QUIESCE_TIMEOUT' VMSnapshotWithQuiesceTimeout else GenericError end end |