diff --git a/lib/SimpleSAML/Error/CannotSetCookie.php b/lib/SimpleSAML/Error/CannotSetCookie.php
new file mode 100644
index 0000000000000000000000000000000000000000..65b6ee8e230fb3fe87a63e0aa1de491a2554a200
--- /dev/null
+++ b/lib/SimpleSAML/Error/CannotSetCookie.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * Exception to indicate that we cannot set a cookie.
+ *
+ * @author Jaime Pérez Crespo <jaime.perez@uninett.no>
+ * @package SimpleSAMLphp
+ */
+
+namespace SimpleSAML\Error;
+
+
+class CannotSetCookie extends \SimpleSAML_Error_Exception
+{
+
+}