diff --git a/dictionaries/errors.definition.json b/dictionaries/errors.definition.json
index ded0d974a6be6420dcd00c8bd0edf076704cd9e8..7dd755b2442a9fee919638f151540faa61eb42c2 100644
--- a/dictionaries/errors.definition.json
+++ b/dictionaries/errors.definition.json
@@ -193,5 +193,11 @@
 	},
 	"descr_UNKNOWNCERT": {
 		"en": "Authentication failed: the certificate your browser sent is unknown"
+	},
+	"title_USERABORTED": {
+		"en": "Authentication aborted"
+	},
+	"descr_USERABORTED": {
+		"en": "The authentication was aborted by the user"
 	}
 }
diff --git a/lib/SimpleSAML/Error/UserAborted.php b/lib/SimpleSAML/Error/UserAborted.php
index 901992b530cb65f9f84cee8e855a94e1875b675b..14df771f1d5c9aa0163250431ccc9e48ff43a498 100644
--- a/lib/SimpleSAML/Error/UserAborted.php
+++ b/lib/SimpleSAML/Error/UserAborted.php
@@ -1,13 +1,20 @@
 <?php
+
 /**
- * Exception indicating user aborting the authentication proces.
+ * Exception indicating user aborting the authentication process.
  *
- * @package simpleSAMLphp_base
+ * @package simpleSAMLphp
  * @version $Id$
- *
  */
-class SimpleSAML_Error_UserAborted extends SimpleSAML_Error_User{
-	
-}
+class SimpleSAML_Error_UserAborted extends SimpleSAML_Error_Error {
 
-?>
+	/**
+	 * Create the error
+	 *
+	 * @param Exception|NULL $cause  The exception that caused this error.
+	 */
+	public function __construct(Exception $cause = NULL) {
+		parent::__construct('USERABORTED', $cause);
+	}
+
+}
diff --git a/modules/authmyspace/www/linkback.php b/modules/authmyspace/www/linkback.php
index cc20f8b8fec069f297ad868394994d822d3ac51c..93c45153c5f76d96dd5fa76e47ccf25acd6f4ded 100644
--- a/modules/authmyspace/www/linkback.php
+++ b/modules/authmyspace/www/linkback.php
@@ -15,7 +15,7 @@ $state = SimpleSAML_Auth_State::loadState($stateId, sspmod_authmyspace_Auth_Sour
 if (array_key_exists('oauth_problem', $_REQUEST)) {
 	// oauth_problem of 'user_refused' means user chose not to login with MySpace
 	if (strcmp($_REQUEST['oauth_problem'],'user_refused') == 0) {
-		$e = new SimpleSAML_Error_UserAborted('User aborted authentication.');
+		$e = new SimpleSAML_Error_UserAborted();
 		SimpleSAML_Auth_State::throwException($state, $e);
 	}
 
diff --git a/modules/authwindowslive/www/linkback.php b/modules/authwindowslive/www/linkback.php
index a8fe872dcebfb59aed009635e9ca623087d7371a..7ae42661fbefa80587413ecac23b76fffac95807 100644
--- a/modules/authwindowslive/www/linkback.php
+++ b/modules/authwindowslive/www/linkback.php
@@ -24,7 +24,7 @@ if (array_key_exists('wrap_verification_code', $_REQUEST)) {
 	// wrap_error_reason = 'user_denied' means user chose not to login with LiveID
 	// redirect them to their original page so they can choose another auth mechanism
 	if ($_REQUEST['wrap_error_reason'] === 'user_denied') {
-		$e = new SimpleSAML_Error_UserAborted('User aborted authentication.');
+		$e = new SimpleSAML_Error_UserAborted();
 		SimpleSAML_Auth_State::throwException($state, $e);
 	}