Skip to content

Commit

Permalink
Update errors.go
Browse files Browse the repository at this point in the history
  • Loading branch information
haardikdharma10 committed Jun 13, 2023
1 parent 88a82f4 commit de2b6e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ var (
DatabaseNetworkExistsError = constError("DatabaseNetworkExistsError")
DatabaseNetworkDeleteLastError = constError("DatabaseNetworkDeleteLastError")
DatabaseNetworkDeleteWithInstanceError = constError("DatabaseNetworkDeleteWithInstanceError")
DatabaseNetworkInUseByVolumes = constError("DatabaseNetworkInUseByVolumes")
DatabaseNetworkDuplicateNameError = constError("DatabaseNetworkDuplicateNameError")
DatabaseNetworkLookupError = constError("DatabaseNetworkLookupError")
DatabaseNetworkNotFoundError = constError("DatabaseNetworkNotFoundError")
Expand Down Expand Up @@ -583,6 +584,9 @@ func decodeError(err error) error {
case "database_network_delete_with_instance":
err := errors.New(msg.String())
return DatabaseNetworkDeleteWithInstanceError.wrap(err)
case "database_network_inuse_by_volumes":
err := errors.New(msg.String())
return DatabaseNetworkInUseByVolumes.wrap(err)
case "database_network_duplicate_name":
err := errors.New(msg.String())
return DatabaseNetworkDuplicateNameError.wrap(err)
Expand Down

0 comments on commit de2b6e2

Please sign in to comment.