summaryrefslogtreecommitdiff
path: root/lib/spack/spack/repository.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/repository.py')
-rw-r--r--lib/spack/spack/repository.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/spack/spack/repository.py b/lib/spack/spack/repository.py
index 5486f7a9a4..3e43cce781 100644
--- a/lib/spack/spack/repository.py
+++ b/lib/spack/spack/repository.py
@@ -924,11 +924,11 @@ class DuplicateRepoError(RepoError):
"""Raised when duplicate repos are added to a RepoPath."""
-class PackageLoadError(spack.error.SpackError):
- """Superclass for errors related to loading packages."""
+class UnknownEntityError(RepoError):
+ """Raised when we encounter a package spack doesn't have."""
-class UnknownPackageError(PackageLoadError):
+class UnknownPackageError(UnknownEntityError):
"""Raised when we encounter a package spack doesn't have."""
def __init__(self, name, repo=None):
@@ -941,7 +941,7 @@ class UnknownPackageError(PackageLoadError):
self.name = name
-class UnknownNamespaceError(PackageLoadError):
+class UnknownNamespaceError(UnknownEntityError):
"""Raised when we encounter an unknown namespace"""
def __init__(self, namespace):
@@ -949,7 +949,7 @@ class UnknownNamespaceError(PackageLoadError):
"Unknown namespace: %s" % namespace)
-class FailedConstructorError(PackageLoadError):
+class FailedConstructorError(RepoError):
"""Raised when a package's class constructor fails."""
def __init__(self, name, exc_type, exc_obj, exc_tb):