# See the License for the specific language governing permissions and
# limitations under the License.
+
class JujuCharmNotFound(Exception):
"""The Charm can't be found or is not readable."""
"""The authentication for the specified user failed."""
+class NotImplemented(Exception):
+ """The method is not implemented."""
+
+
class N2VCException(Exception):
"""
N2VC exception base class
def __str__(self):
return '<{}> Error executing primitive {} failed: {}'.format(type(self), self.primitive_name, super().__str__())
+
class N2VCInvalidCertificate(N2VCException):
"""
Invalid certificate
def __str__(self):
return '<{}> Invalid certificate: {}'.format(type(self), super().__str__())
+
+
+class K8sException(Exception):
+ """
+ K8s exception
+ """
+
+ def __init__(self, message: str):
+ Exception.__init__(self, message)
+ self._message = message
+
+ def __str__(self):
+ return self._message
+
+ def __repr__(self):
+ return self._message