Skip to content

Commit

Permalink
Add metro error
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshatdell committed Sep 10, 2024
1 parent 7ed2ae2 commit 0d49e3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gopowerstore_types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*
* Copyright © 2020-2023 Dell Inc. or its subsidiaries. All Rights Reserved.
* Copyright © 2020-2024 Dell Inc. or its subsidiaries. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -129,6 +129,11 @@ func (err *APIError) UnableToFailoverFromDestination() bool {
return err.StatusCode == http.StatusBadRequest
}

// ReplicationSessionAlreadyCreated returns true if API error indicate that replication session has already been created
func (err *APIError) ReplicationSessionAlreadyCreated() bool {
return err.StatusCode == http.StatusBadRequest
}

// NewNotFoundError returns new VolumeIsNotExistError
func NewNotFoundError() APIError {
return notFoundError()
Expand Down

0 comments on commit 0d49e3c

Please sign in to comment.