Initial commit
diff --git a/includes/class-wc-stripe-exception.php b/includes/class-wc-stripe-exception.php
new file mode 100644
index 0000000..687a160
--- /dev/null
+++ b/includes/class-wc-stripe-exception.php
@@ -0,0 +1,43 @@
+<?php
+/**
+ * WooCommerce Stripe Exception Class
+ *
+ * Extends Exception to provide additional data
+ *
+ * @since 4.0.2
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+	exit;
+}
+
+class WC_Stripe_Exception extends Exception {
+
+	/**
+	 * String sanitized/localized error message.
+	 *
+	 * @var string */
+	protected $localized_message;
+
+	/**
+	 * Setup exception
+	 *
+	 * @since 4.0.2
+	 * @param string $error_message Full response
+	 * @param string $localized_message user-friendly translated error message
+	 */
+	public function __construct( $error_message = '', $localized_message = '' ) {
+		$this->localized_message = $localized_message;
+		parent::__construct( $error_message );
+	}
+
+	/**
+	 * Returns the localized message.
+	 *
+	 * @since 4.0.2
+	 * @return string
+	 */
+	public function getLocalizedMessage() {
+		return $this->localized_message;
+	}
+}