Changeset 26238 in vbox
- Timestamp:
- Feb 4, 2010 2:51:21 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57285
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/VirtualBoxBase.h
r26186 r26238 1175 1175 1176 1176 /** 1177 * Sets the error information for the current thread, BStr variant.1178 * A convenience method that automatically sets the default interface1179 * ID (taken from the I template argument) and the component name1180 * (a value of C::getComponentName()).1181 *1182 * This method is preferred if you have a ready (translated and formatted)1183 * Bstr string, because it omits an extra conversion Utf8Str -> Bstr.1184 *1185 * See #setError(HRESULT, const GUID &, const wchar_t *, const char *text, ...)1186 * and #setError(HRESULT, const char *, ...) for details.1187 */1188 static HRESULT setErrorBstr(HRESULT aResultCode, const Bstr &aText)1189 {1190 HRESULT rc = VirtualBoxSupportErrorInfoImplBase::setError(1191 aResultCode, COM_IIDOF(I), C::getComponentName(), aText, true /* aLogIt */);1192 return rc;1193 }1194 1195 /**1196 * This method is the same as #setErrorBstr() except that it makes sure @a1197 * aResultCode doesn't have the error severity bit (31) set when passed1198 * down to the created IVirtualBoxErrorInfo object.1199 *1200 * The error severity bit is always cleared by this call, thereof you can1201 * use ordinary E_XXX result code constants, for convenience. However, this1202 * behavior may be non-standard on some COM platforms.1203 */1204 static HRESULT setWarningBstr(HRESULT aResultCode, const Bstr &aText)1205 {1206 HRESULT rc = VirtualBoxSupportErrorInfoImplBase::setWarning(1207 aResultCode, COM_IIDOF(I), C::getComponentName(), aText);1208 return rc;1209 }1210 1211 /**1212 1177 * Sets the error information for the current thread. 1213 1178 * A convenience method that automatically sets the component name
Note:
See TracChangeset
for help on using the changeset viewer.