Renamed MXhtmlUnsafeStringTextException to MXhtmlUnsafeStringException.
authorMarco Zanon <info@marcozanon.com>
Thu, 22 Oct 2015 13:25:19 +0000 (13:25 +0000)
committerMarco Zanon <info@marcozanon.com>
Thu, 22 Oct 2015 13:25:19 +0000 (13:25 +0000)
4.x/src/java/com/marcozanon/macaco/text/MText.java
4.x/src/java/com/marcozanon/macaco/text/MXhtmlUnsafeStringException.java [new file with mode: 0644]
4.x/src/java/com/marcozanon/macaco/text/MXhtmlUnsafeStringTextException.java [deleted file]

index e33d778f66594910070b4c1651914236c06ec135..7b5fd84bbddc52317c77d01e9d67c6ed6f02dc24 100644 (file)
@@ -363,7 +363,7 @@ public class MText extends MObject {
         return text;
     }
 
-    public static String getXhtmlSafeString(String x) throws MXhtmlUnsafeStringTextException {
+    public static String getXhtmlSafeString(String x) throws MXhtmlUnsafeStringException {
         if (null == x) {
             return null;
         }
@@ -426,7 +426,7 @@ public class MText extends MObject {
         catch (ParserConfigurationException exception) { // cannot happen
         }
         catch (SAXException exception) {
-            throw new MXhtmlUnsafeStringTextException("Invalid 'x': unsafe tags or attributes inside.", exception);
+            throw new MXhtmlUnsafeStringException("Invalid 'x': unsafe tags or attributes inside.", exception);
         }
         catch (UnsupportedEncodingException exception) { // cannot happen
         }
diff --git a/4.x/src/java/com/marcozanon/macaco/text/MXhtmlUnsafeStringException.java b/4.x/src/java/com/marcozanon/macaco/text/MXhtmlUnsafeStringException.java
new file mode 100644 (file)
index 0000000..e5a2361
--- /dev/null
@@ -0,0 +1,30 @@
+/**
+ * Macaco
+ * Copyright (c) 2009-2015 Marco Zanon <info@marcozanon.com>.
+ * Released under MIT license (see LICENSE for details).
+ */
+
+package com.marcozanon.macaco.text;
+
+@SuppressWarnings("serial")
+public class MXhtmlUnsafeStringException extends MTextException {
+
+    /* */
+
+    public MXhtmlUnsafeStringException() {
+        super();
+    }
+
+    public MXhtmlUnsafeStringException(String message) {
+        super(message);
+    }
+
+    public MXhtmlUnsafeStringException(Throwable error) {
+        super(error);
+    }
+
+    public MXhtmlUnsafeStringException(String message, Throwable error) {
+        super(message, error);
+    }
+
+}
diff --git a/4.x/src/java/com/marcozanon/macaco/text/MXhtmlUnsafeStringTextException.java b/4.x/src/java/com/marcozanon/macaco/text/MXhtmlUnsafeStringTextException.java
deleted file mode 100644 (file)
index bbfdf45..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Macaco
- * Copyright (c) 2009-2015 Marco Zanon <info@marcozanon.com>.
- * Released under MIT license (see LICENSE for details).
- */
-
-package com.marcozanon.macaco.text;
-
-@SuppressWarnings("serial")
-public class MXhtmlUnsafeStringTextException extends MTextException {
-
-    /* */
-
-    public MXhtmlUnsafeStringTextException() {
-        super();
-    }
-
-    public MXhtmlUnsafeStringTextException(String message) {
-        super(message);
-    }
-
-    public MXhtmlUnsafeStringTextException(Throwable error) {
-        super(error);
-    }
-
-    public MXhtmlUnsafeStringTextException(String message, Throwable error) {
-        super(message, error);
-    }
-
-}