Class MalformedByteSequenceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.io.CharConversionException
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.io.MalformedByteSequenceException
-
- All Implemented Interfaces:
Serializable
public final class MalformedByteSequenceException extends CharConversionException
Signals that a malformed byte sequence was detected by a
java.io.Reader
that decodes bytes of a given encoding into characters.- Version:
- $Id$
- Author:
- Michael Glavassevich, IBM
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments)
Constructs a MalformedByteSequenceException with the given parameters which may be passed to an error reporter to generate a localized string for this exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getArguments()
Returns the replacement arguments for the error message ornull
if none exist.String
getDomain()
Returns the error domain of the error message.String
getKey()
Returns the key of the error message.String
getMessage()
Returns the localized message for this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MalformedByteSequenceException
public MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments)
Constructs a MalformedByteSequenceException with the given parameters which may be passed to an error reporter to generate a localized string for this exception.- Parameters:
formatter
- The MessageFormatter used for building the message text for this exception.locale
- The Locale for which messages are to be reported.domain
- The error domain.key
- The key of the error message.arguments
- The replacement arguments for the error message, if needed.
-
-
Method Detail
-
getDomain
public String getDomain()
Returns the error domain of the error message.
- Returns:
- the error domain
-
getKey
public String getKey()
Returns the key of the error message.
- Returns:
- the error key of the error message
-
getArguments
public Object[] getArguments()
Returns the replacement arguments for the error message or
null
if none exist.- Returns:
- the replacement arguments for the error message
or
null
if none exist
-
getMessage
public String getMessage()
Returns the localized message for this exception.
- Overrides:
getMessage
in classThrowable
- Returns:
- the localized message for this exception.
-
-