Skip to content

Commit

Permalink
Adds new NotFound error to cloud domain.
Browse files Browse the repository at this point in the history
We need a new error that encapsulates a cloud that cannot be found. This
introduces a new ConstError to fulfil this.
  • Loading branch information
tlm committed Dec 1, 2023
1 parent 868d931 commit 496a7b5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions domain/cloud/errors/errors.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2023 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package errors

import (
"github.com/juju/errors"
)

const (
// NotFound describes an error that occurs when the cloud being operated on
// does not exist.
NotFound = errors.ConstError("cloud not found")
)

0 comments on commit 496a7b5

Please sign in to comment.