org.apache.xerces.impl.io
Class MalformedByteSequenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.io.CharConversionException
                  extended by org.apache.xerces.impl.io.MalformedByteSequenceException
All Implemented Interfaces:
java.io.Serializable

public class MalformedByteSequenceException
extends java.io.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: MalformedByteSequenceException.java 539931 2007-05-20 20:27:43Z mrglavas $
Author:
Michael Glavassevich, IBM
See Also:
Serialized Form

Constructor Summary
MalformedByteSequenceException(MessageFormatter formatter, java.util.Locale locale, java.lang.String domain, java.lang.String key, java.lang.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
 java.lang.Object[] getArguments()
          Returns the replacement arguments for the error message or null if none exist.
 java.lang.String getDomain()
          Returns the error domain of the error message.
 java.lang.String getKey()
          Returns the key of the error message.
 java.lang.String getMessage()
          Returns the localized message for this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MalformedByteSequenceException

public MalformedByteSequenceException(MessageFormatter formatter,
                                      java.util.Locale locale,
                                      java.lang.String domain,
                                      java.lang.String key,
                                      java.lang.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 java.lang.String getDomain()

Returns the error domain of the error message.

Returns:
the error domain

getKey

public java.lang.String getKey()

Returns the key of the error message.

Returns:
the error key of the error message

getArguments

public java.lang.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 java.lang.String getMessage()

Returns the localized message for this exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the localized message for this exception.