From: Marco Zanon Date: Thu, 22 Oct 2015 13:25:19 +0000 (+0000) Subject: Renamed MXhtmlUnsafeStringTextException to MXhtmlUnsafeStringException. X-Git-Tag: SVN-to-Git~91 X-Git-Url: https://gitweb.marcozanon.com/?a=commitdiff_plain;h=42ccf462e3ca46b532e3d3ad8cef0c7faf1f2a56;p=Macaco Renamed MXhtmlUnsafeStringTextException to MXhtmlUnsafeStringException. --- diff --git a/4.x/src/java/com/marcozanon/macaco/text/MText.java b/4.x/src/java/com/marcozanon/macaco/text/MText.java index e33d778..7b5fd84 100644 --- a/4.x/src/java/com/marcozanon/macaco/text/MText.java +++ b/4.x/src/java/com/marcozanon/macaco/text/MText.java @@ -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 index 0000000..e5a2361 --- /dev/null +++ b/4.x/src/java/com/marcozanon/macaco/text/MXhtmlUnsafeStringException.java @@ -0,0 +1,30 @@ +/** + * Macaco + * Copyright (c) 2009-2015 Marco Zanon . + * 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 index bbfdf45..0000000 --- a/4.x/src/java/com/marcozanon/macaco/text/MXhtmlUnsafeStringTextException.java +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Macaco - * Copyright (c) 2009-2015 Marco Zanon . - * 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); - } - -}