Changeset 14858 in vbox for trunk/src/VBox
- Timestamp:
- Dec 1, 2008 1:56:37 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r14854 r14858 4159 4159 { 4160 4160 if (mData->mRegistered) 4161 return setError ( E_FAIL,4161 return setError (VBOX_E_INVALID_OBJECT_STATE, 4162 4162 tr ("The machine '%ls' with UUID {%s} is already registered"), 4163 4163 mUserData->mName.raw(), … … 4167 4167 { 4168 4168 if (mData->mMachineState == MachineState_Saved) 4169 return setError ( E_FAIL,4169 return setError (VBOX_E_INVALID_VM_STATE, 4170 4170 tr ("Cannot unregister the machine '%ls' because it " 4171 4171 "is in the Saved state"), … … 4176 4176 snapshotCount = mData->mFirstSnapshot->descendantCount() + 1; 4177 4177 if (snapshotCount) 4178 return setError ( E_FAIL,4178 return setError (VBOX_E_INVALID_OBJECT_STATE, 4179 4179 tr ("Cannot unregister the machine '%ls' because it " 4180 4180 "has %d snapshots"), … … 4182 4182 4183 4183 if (mData->mSession.mState != SessionState_Closed) 4184 return setError ( E_FAIL,4184 return setError (VBOX_E_INVALID_OBJECT_STATE, 4185 4185 tr ("Cannot unregister the machine '%ls' because it has an " 4186 4186 "open session"), … … 4188 4188 4189 4189 if (mHDData->mAttachments.size() != 0) 4190 return setError ( E_FAIL,4190 return setError (VBOX_E_INVALID_OBJECT_STATE, 4191 4191 tr ("Cannot unregister the machine '%ls' because it " 4192 4192 "has %d hard disks attached"), -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r14854 r14858 962 962 * or opened by OpenMachine() or loaded during startup 963 963 */ 964 return setError ( E_FAIL,964 return setError (VBOX_E_INVALID_OBJECT_STATE, 965 965 tr ("The machine named '%ls' is not created within this " 966 966 "VirtualBox instance"), name.raw()); … … 1041 1041 HRESULT rc = machine 1042 1042 ? S_OK 1043 : setError ( E_INVALIDARG,1043 : setError (VBOX_E_FILE_ERROR, 1044 1044 tr ("Could not find a registered machine named '%ls'"), aName); 1045 1045 … … 2635 2635 if (aSetError && !found) 2636 2636 { 2637 setError ( E_INVALIDARG,2637 setError (VBOX_E_FILE_ERROR, 2638 2638 tr ("Could not find a registered machine with UUID {%RTuuid}"), 2639 2639 aId.raw()); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r14849 r14858 1484 1484 1485 1485 @deprecated Will be removed soon. 1486 <result name="VBOX_E_FILE_ERROR"> 1487 Settings file name invalid, not found or sharing violation. 1488 </result> 1486 1489 </desc> 1487 1490 <param name="settingsFile" type="wstring" dir="in"> … … 1515 1518 </note> 1516 1519 1520 <result name="VBOX_E_INVALID_OBJECT_STATE"> 1521 Virtual machine was not created within this VirtualBox instance. 1522 </result> 1523 1517 1524 </desc> 1518 1525 <param name="machine" type="IMachine" dir="in"/> … … 1522 1529 <desc> 1523 1530 Attempts to find a virtual machine given its UUID. 1524 To look up a machine by name, use <link to="IVirtualBox::findMachine" /> instead. 1531 To look up a machine by name, use <link to="IVirtualBox::findMachine" /> 1532 instead. 1533 1534 <result name="VBOX_E_FILE_ERROR"> 1535 Could not find registered machine matching @a id. 1536 </result> 1537 1525 1538 </desc> 1526 1539 <param name="id" type="uuid" dir="in"/> … … 1531 1544 <desc> 1532 1545 Attempts to find a virtual machine given its name. 1533 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" /> instead. 1546 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" /> 1547 instead. 1548 1549 <result name="VBOX_E_FILE_ERROR"> 1550 Could not find registered machine matching @a name. 1551 </result> 1552 1534 1553 </desc> 1535 1554 <param name="name" type="wstring" dir="in"/> … … 1563 1582 <b>any</b> method will return the "Object not ready" error. 1564 1583 </note> 1584 1585 <result name="VBOX_E_FILE_ERROR"> 1586 Could not find registered machine matching @a id. 1587 </result> 1588 <result name="VBOX_E_INVALID_VM_STATE"> 1589 Machine is in Saved state. 1590 </result> 1591 <result name="VBOX_E_INVALID_OBJECT_STATE"> 1592 Machine has snapshot or open session or hard disk attached. 1593 </result> 1565 1594 1566 1595 </desc>
Note:
See TracChangeset
for help on using the changeset viewer.