com.sage.accpac.sm
Class UncheckedCharacterCodingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sage.accpac.sm.UncheckedCharacterCodingException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DamagedStringException, InvalidCharacterException

@NotThreadSafe
public class UncheckedCharacterCodingException
extends java.lang.RuntimeException

The UncheckedCharacterCodingException is an unchecked equivalent of the CharacterCodingException

See Also:
Serialized Form

Constructor Summary
UncheckedCharacterCodingException(java.lang.String s, int position)
          creates an instance of the UncheckedCharacterCodingException class for damage at the given position of the given string.
 
Method Summary
 int getPosition()
          returns the position within the string where the damage is first apparent
 java.lang.String getString()
          returns the damaged string
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UncheckedCharacterCodingException

public UncheckedCharacterCodingException(java.lang.String s,
                                         int position)
creates an instance of the UncheckedCharacterCodingException class for damage at the given position of the given string.

Parameters:
s - the input string that was at fault
position - the position within the string where the first fault is seen
Method Detail

getString

public java.lang.String getString()
returns the damaged string

Returns:
the damaged string

getPosition

public int getPosition()
returns the position within the string where the damage is first apparent

Returns:
the position within the string where the damage is first apparent


Copyright © 2011 Sage Software, Inc. All rights reserved.