Exception: XenApi::Errors::GenericError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- XenApi::Errors::GenericError
- Defined in:
- lib/xenapi/xenapi/errors.rb
Overview
Generic errror case, all XenApi exceptions inherit from this for ease of catching
Direct Known Subclasses
BootloaderFailed, DeviceAlreadyDetached, DeviceDetachRejected, EventsLost, HAOperationWouldBreakFailoverPlan, HostIsSlave, 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
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
The raw error description according to the server, typically an array.
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ GenericError
constructor
A new instance of GenericError.
Constructor Details
#initialize(*args, &block) ⇒ GenericError
Returns a new instance of GenericError.
8 9 10 11 12 |
# File 'lib/xenapi/xenapi/errors.rb', line 8 def initialize(*args, &block) @description = args[0] args[0] = args[0].inspect unless args[0].is_a? String || args[0].nil? super(*args, &block) end |
Instance Attribute Details
#description ⇒ Object (readonly)
The raw error description according to the server, typically an array
6 7 8 |
# File 'lib/xenapi/xenapi/errors.rb', line 6 def description @description end |