-
Notifications
You must be signed in to change notification settings - Fork 941
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v8(services): handle "operation in progress" error (#2139)
- reports the message from the cloud controller - no longer reports as an unexpected error [#176379736](https://www.pivotaltracker.com/story/show/176379736)
Showing
3 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
api/cloudcontroller/ccerror/service_instance_operation_in_progress_error.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package ccerror | ||
|
||
// ServiceInstanceOperationInProgressError is returned when an operation | ||
// cannot proceed because an operation is already in progress | ||
type ServiceInstanceOperationInProgressError struct { | ||
Message string | ||
} | ||
|
||
func (e ServiceInstanceOperationInProgressError) Error() string { | ||
return e.Message | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters