From 3a80dfe0d7669f86343a0cc0fef4cc5cdcf0f1b1 Mon Sep 17 00:00:00 2001 From: Hendrik Buschmeier <hbuschme@uni-bielefeld.de> Date: Thu, 3 Dec 2015 16:20:14 +0100 Subject: [PATCH] Added IURetractedError. --- ipaacalib/python/src/ipaaca/exception.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ipaacalib/python/src/ipaaca/exception.py b/ipaacalib/python/src/ipaaca/exception.py index f90a675..f3a927d 100644 --- a/ipaacalib/python/src/ipaaca/exception.py +++ b/ipaacalib/python/src/ipaaca/exception.py @@ -4,7 +4,7 @@ # "Incremental Processing Architecture # for Artificial Conversational Agents". # -# Copyright (c) 2009-2014 Social Cognitive Systems Group +# Copyright (c) 2009-2015 Social Cognitive Systems Group # CITEC, Bielefeld University # # http://opensource.cit-ec.de/projects/ipaaca/ @@ -82,13 +82,21 @@ class IUPublishedError(IpaacaError): class IUReadOnlyError(IpaacaError): """Error indicating that an IU is immutable because it is 'read only'.""" def __init__(self, iu): - super(IUReadOnlyError, self).__init__('Writing to IU ' + str(iu.uid) + ' failed -- it is read-only.') + super(IUReadOnlyError, self).__init__( + 'Writing to IU ' + str(iu.uid) + ' failed -- it is read-only.') class IUResendRequestFailedError(IpaacaError): """Error indicating that a remote IU resend failed.""" def __init__(self, iu): - super(IUResendFailedError, self).__init__('Remote resend failed for IU ' + str(iu.uid) + '.') + super(IUResendRequestFailedError, self).__init__( + 'Remote resend failed for IU ' + str(iu.uid) + '.') + + +class IURetractedError(IpaacaError): + """Error indicating that an IU has been retracted.""" + def __init__(self, iu): + super(IURetractedError, self).__init__('Writing to IU ' + str(iu.uid) + ' failed -- it has been retracted.') class IUUpdateFailedError(IpaacaError): -- GitLab