app/soc/logic/out_of_band.py
changeset 293 1edd01373e71
parent 111 f506a22f50db
child 303 4f1bb54ddae5
--- a/app/soc/logic/out_of_band.py	Thu Oct 09 18:11:37 2008 +0000
+++ b/app/soc/logic/out_of_band.py	Thu Oct 09 23:38:27 2008 +0000
@@ -44,3 +44,22 @@
     self.message = message
     self.response_args = response_args
 
+
+class AccessViolationResponse(OutOfBandResponse):
+  """"Out of band response when an access requirement was not met.
+  """
+
+  def __init__(self, response):
+    """Constructor used to set response message \.
+
+    Args:
+      response: The response that should be returned to the user.
+    """
+
+    self._response = response
+
+  def response(self):
+    """Returns the response that was set in the constructor.
+    """
+
+    return self._response