Lines Matching defs:error

41 // Move most of preflight error checks to the Model level and only keep those
44 // Clean up the error handling, push most of the user interaction out of the
177 B_TRANSLATE_MARK("Error copying file \"%name\":\n\t%error\n\n"
181 B_TRANSLATE_MARK("Error copying folder \"%name\":\n\t%error\n\n"
185 B_TRANSLATE_MARK("There was an error deleting \"%name\""
186 ":\n\t%error");
233 status_t error, bool allowContinue)
355 status_t error, bool allowContinue)
359 buffer.ReplaceFirst("%error", strerror(error));
1127 BString error(B_TRANSLATE("Error moving \"%name\"."));
1128 error.ReplaceFirst("%name", srcRef->name);
1129 BAlert* alert = new BAlert("", error.String(),
1144 BString error(B_TRANSLATE("Error moving \"%name\" to Trash. "
1145 "(%error)"));
1146 error.ReplaceFirst("%name", srcRef->name);
1147 error.ReplaceFirst("%error", strerror(result));
1148 BAlert* alert = new BAlert("", error.String(),
1213 static void FailOnError(status_t error, const char* string,
1216 if (error != B_OK)
1217 throw FailWithAlert(error, string, name);
1220 FailWithAlert(status_t error, const char* string, const char* name)
1224 fError(error)
1236 static void FailOnError(status_t error)
1238 if (error != B_OK)
1239 throw MoveError(error);
1242 MoveError(status_t error)
1244 fError(error)
1314 // before LowLevelCopy could finish. In a move operation, if the standard file error
1318 B_TRANSLATE("Error copying file \"%name\":\n\t%error\n\n"));
1319 // The error may have resulted from the user dragging a set of selected files to a
1339 // user selected continue in spite of error, update status bar
1509 // read error
1548 // Add error checking
1915 } catch (status_t error) {
1917 return error;
1918 } catch (MoveError& error) {
1925 return error.fError;
1926 } catch (FailWithAlert& error) {
1927 BString buffer(error.fString);
1928 if (error.fName != NULL)
1929 buffer.ReplaceFirst("%name", error.fName);
1931 buffer << error.fString;
1938 return error.fError;
1960 catch (status_t error) {
1961 return error;
2029 } catch (status_t error) {
2030 return error;
2104 // return no error so we don't get two dialogs
2406 BString error(B_TRANSLATE("There was a problem trying to replace "
2408 error.ReplaceFirst("%name", name);
2409 BAlert* alert = new BAlert("", error.String(),
2619 // This would point at an error to retrieve the block size from
3360 status_t error;
3363 if ((error = entry.GetParent(&parent)) != B_OK
3364 || (error = parent.GetEntry(&parentEntry)) != B_OK
3365 || (error = parentEntry.GetRef(&_ref)) != B_OK) {
3366 return error;
3397 status_t error = FSGetParentVirtualDirectoryAware(entry, ref);
3398 if (error == B_OK)
3399 error = _node.SetTo(&ref);
3401 return error;
3480 status_t error = B_ERROR;
3484 error = be_roster->Launch(appRef, refs, &team);
3485 if (error == B_ALREADY_RUNNING)
3486 // app already running, not really an error
3487 error = B_OK;
3489 if (error == B_OK)
3499 if (error == B_OK) {
3511 alertString.SetTo(B_TRANSLATE("Could not open \"%name\" (%error). "));
3513 alertString.ReplaceFirst("%error", strerror(error));
3514 if (refs != NULL && openWithOK && error != B_SHUTTING_DOWN) {
3521 error = TrackerOpenWith(refs);
3548 port_id errorPort = create_port(1, "Tracker loader error");
3569 // read error message from port and construct details string
3605 result = message.FindInt32("error", &errorCode);
3650 status_t error = B_ERROR;
3658 error = be_roster->FindApp(&documentRef, &app);
3660 if (error != B_OK && mimesetIt == 0) {
3665 if (error != B_OK) {
3667 "open \"%name\" (%error). "));
3669 alertString.ReplaceFirst("%error", strerror(error));
3696 error = be_roster->Launch(&app, refsToPass, &team);
3697 if (error == B_ALREADY_RUNNING)
3698 // app already running, not really an error
3699 error = B_OK;
3700 if (error == B_OK || mimesetIt != 0)
3702 if (error == B_LAUNCH_FAILED_EXECUTABLE) {
3706 error = BMimeType::GuessMimeType(&documentRef, &type);
3707 if (error != B_OK)
3709 error = be_roster->FindApp(type.Type(), &app);
3710 if (error != B_OK)
3712 error = be_roster->Launch(&app, refs, &team);
3713 if (error == B_ALREADY_RUNNING)
3714 // app already running, not really an error
3715 error = B_OK;
3716 if (error == B_OK || mimesetIt != 0)
3725 if (error != B_OK && alertString.Length() == 0) {
3735 if (error == B_UNKNOWN_EXECUTABLE && !refsToPass) {
3740 } else if (error == B_LEGACY_EXECUTABLE && !refsToPass) {
3747 } else if (error == B_LAUNCH_FAILED_EXECUTABLE && !refsToPass) {
3764 error = entry.GetPermissions(&permissions);
3765 if (error == B_OK) {
3766 error = entry.SetPermissions(permissions
3769 if (error == B_OK) {
3775 "permissions of file \"%name\". %error"));
3777 alertString.ReplaceFirst("%error", strerror(error));
3784 } else if (error == B_LAUNCH_FAILED_APP_IN_TRASH) {
3790 } else if (error == B_LAUNCH_FAILED_APP_NOT_FOUND) {
3792 B_TRANSLATE("Could not open \"%name\" (%error). "));
3794 alertString.ReplaceFirst("%error", strerror(error));
3796 } else if (error == B_MISSING_SYMBOL
3814 } else if (error == B_MISSING_LIBRARY
3834 "application \"%app\" (%error). "));
3837 alertString.ReplaceFirst("%error", strerror(error));
3842 if (error != B_OK) {
3851 error = TrackerOpenWith(refs);
3862 // the following three calls don't return any reasonable error codes,