com.sage.accpac.sm
Class InvalidCharacterException

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
                  extended by com.sage.accpac.sm.InvalidCharacterException
All Implemented Interfaces:
java.io.Serializable

@NotThreadSafe
public class InvalidCharacterException
extends UncheckedCharacterCodingException

Thrown when a character is found that is not mappable to an underlying character set. For example trying to put a field containing an Oriental character into a database that is set up only to accept European characters will result in this being thrown.

This is basically equivalent to an UnmappableCharacterException except it is unchecked

See Also:
Serialized Form

Constructor Summary
InvalidCharacterException()
          constructs an instance of the InvalidCharacterException class
InvalidCharacterException(java.lang.String s, int position, java.lang.String charsetName)
          creates an instance of the InvalidCharacterException noting the invalid string and the position of the invalid character.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class com.sage.accpac.sm.UncheckedCharacterCodingException
getPosition, getString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidCharacterException

public InvalidCharacterException()
constructs an instance of the InvalidCharacterException class


InvalidCharacterException

public InvalidCharacterException(java.lang.String s,
                                 int position,
                                 java.lang.String charsetName)
creates an instance of the InvalidCharacterException noting the invalid string and the position of the invalid character.

Parameters:
s - the string that contains the invalid character
position - the position within the string where the invalid character begins
charsetName - the name of the character set that the character is invalid in
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


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